diff options
author | Rob Loach <robloach@gmail.com> | 2015-11-18 22:17:05 -0500 |
---|---|---|
committer | Rob Loach <robloach@gmail.com> | 2015-11-18 22:17:05 -0500 |
commit | 9be6cc9873612eba905abccc7b2b8a8be73f17bd (patch) | |
tree | 670be0c4e992bf2570d57e3d68172b3b803e0e25 | |
parent | e85f48600f63062058962f3a21a93216b500f421 (diff) | |
parent | 47f2131c12e71dac17e48c80c9a36623c52cf4f4 (diff) | |
download | jquery-once-9be6cc9873612eba905abccc7b2b8a8be73f17bd.zip jquery-once-9be6cc9873612eba905abccc7b2b8a8be73f17bd.tar.gz jquery-once-9be6cc9873612eba905abccc7b2b8a8be73f17bd.tar.bz2 |
Merge branch 'master' of github.com:RobLoach/jquery-once
-rw-r--r-- | jquery.once.js | 4 | ||||
-rw-r--r-- | package.json | 7 | ||||
-rw-r--r-- | test/test.js | 1 |
3 files changed, 6 insertions, 6 deletions
diff --git a/jquery.once.js b/jquery.once.js index 471dd53..1625b0b 100644 --- a/jquery.once.js +++ b/jquery.once.js @@ -29,7 +29,7 @@ /* globals jQuery */ factory(jQuery); } -}(function ($) { +})(function ($) { 'use strict'; /** @@ -173,4 +173,4 @@ return $(this).data(name) === true; }); }; -})); +}); diff --git a/package.json b/package.json index aba4547..c4bcfb6 100644 --- a/package.json +++ b/package.json @@ -44,12 +44,11 @@ "jsdom": "~7.0.2", "mocha": "~2.3.3", "mocha-jsdom": "~1.0.0", - "semistandard": "^7.0.2", - "uglify-js": "~2.6.1" + "uglify-js": "~2.6.1", + "xo": "^0.11.2" }, "scripts": { - "posttest": "semistandard", - "test": "mocha test/test.js", + "test": "mocha test/test.js && xo --space", "docs": "jsdoc2md jquery.once.js > API.md", "build": "uglifyjs jquery.once.js -o jquery.once.min.js --comments --source-map jquery.once.min.js.map --mangle", "package": "npm install && npm run test && npm run docs && npm run build", diff --git a/test/test.js b/test/test.js index b356912..82bc290 100644 --- a/test/test.js +++ b/test/test.js @@ -29,6 +29,7 @@ describe('jQuery Once', function () { */ beforeEach(function () { // Build the body HTML. + /* globals document */ document.body.innerHTML = '<p>This is the <span>Test</span>.</p>'; }); |