From 83acf6c383a72bde2c75352db56095b536ce2fd8 Mon Sep 17 00:00:00 2001 From: Austin Sanders Date: Wed, 27 Jun 2018 15:13:49 -0700 Subject: [PATCH] Adds use strict. Fixes canjs/canjs#4217 --- build.js | 1 + core.js | 1 + fixture.js | 1 + helpers/getid.js | 1 + helpers/legacyStore.js | 1 + store.js | 1 + xhr.js | 1 + 7 files changed, 7 insertions(+) diff --git a/build.js b/build.js index c43903b..2b183cf 100644 --- a/build.js +++ b/build.js @@ -1,3 +1,4 @@ +"use strict"; var stealTools = require("steal-tools"); var globalJS = require("steal-tools/lib/build/helpers/global").js; var baseHelpers = require("steal-tools/lib/build/helpers/base"); diff --git a/core.js b/core.js index 185d5dd..d0dc1cb 100644 --- a/core.js +++ b/core.js @@ -1,3 +1,4 @@ +"use strict"; // Adds var canSet = require("can-set"); var sub = require("can-util/js/string/string").sub; diff --git a/fixture.js b/fixture.js index 029f9d1..8aea1d8 100644 --- a/fixture.js +++ b/fixture.js @@ -1,3 +1,4 @@ +"use strict"; var core = require("./core"); var fixture = core.add; var Store = require("./store"); diff --git a/helpers/getid.js b/helpers/getid.js index 23e0d8f..03334c2 100644 --- a/helpers/getid.js +++ b/helpers/getid.js @@ -1,3 +1,4 @@ +"use strict"; // Attemps to guess where the id is in an AJAX call's URL and returns it. module.exports = function (xhrSettings, fixtureSettings) { var id = xhrSettings.data.id; diff --git a/helpers/legacyStore.js b/helpers/legacyStore.js index 32daa68..e8ddc66 100644 --- a/helpers/legacyStore.js +++ b/helpers/legacyStore.js @@ -1,3 +1,4 @@ +"use strict"; var getId = require("./getid"); var canSet = require("can-set"); var isArrayLike = require("can-util/js/is-array-like/is-array-like"); diff --git a/store.js b/store.js index 462195f..54025d3 100644 --- a/store.js +++ b/store.js @@ -1,3 +1,4 @@ +"use strict"; var canSet = require("can-set"); var connect = require("can-connect"); var legacyStore = require("./helpers/legacyStore"); diff --git a/xhr.js b/xhr.js index 51afafd..2c8f764 100644 --- a/xhr.js +++ b/xhr.js @@ -1,3 +1,4 @@ +"use strict"; /* global require, window, global */ /* global setTimeout, clearTimeout, XMLHttpRequest */