Browse Source

kernel: 'use strict' in function, not to break builders

Herbert Vojčík 7 years ago
parent
commit
fa40dfd7d2
3 changed files with 5 additions and 6 deletions
  1. 1 2
      support/boot.js
  2. 2 2
      support/brikz.js
  3. 2 2
      support/kernel-runtime.js

+ 1 - 2
support/boot.js

@@ -1,5 +1,3 @@
-"use strict";
-
 /* ====================================================================
  |
  |   Amber Smalltalk
@@ -42,6 +40,7 @@
 //jshint eqnull:true
 
 define(['require', './brikz', './compatibility'], function (require, Brikz) {
+    "use strict";
 
     function inherits(child, parent) {
         child.prototype = Object.create(parent.prototype, {

+ 2 - 2
support/brikz.js

@@ -1,7 +1,7 @@
-"use strict";
-
 define([], function () {
     return function Brikz(api, apiKey, initKey) {
+        "use strict";
+
         //jshint eqnull:true
 
         var brikz = this,

+ 2 - 2
support/kernel-runtime.js

@@ -1,8 +1,8 @@
-"use strict";
-
 //jshint eqnull:true
 
 define(function () {
+    "use strict";
+
     DNUBrik.deps = ["selectors", "messageSend", "manipulation", "root"];
     function DNUBrik(brikz, st) {
         var selectorsBrik = brikz.selectors;