diff options
-rw-r--r-- | Gruntfile.js | 5 | ||||
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | bower.json | 8 | ||||
-rw-r--r-- | component.json | 2 | ||||
-rw-r--r-- | composer.json | 3 | ||||
-rw-r--r-- | jquery.once.js.map | 2 | ||||
-rw-r--r-- | jquery.once.litcoffee | 5 | ||||
-rw-r--r-- | jquery.once.min.js | 4 | ||||
-rw-r--r-- | once.jquery.json | 2 | ||||
-rw-r--r-- | package.json | 9 |
10 files changed, 25 insertions, 25 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 86df8fb..feb538f 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -24,11 +24,6 @@ module.exports = function(grunt) { files: [ 'test/index.html' ] - }, - eslint: { - target: [ - 'jquery.once.js' - ] } }); @@ -35,7 +35,7 @@ Act on jQuery elements only once. ### [Browserify](http://browserify.org/) - Use: `require('jquery-once')` - Install: `npm install --save jquery-once` -- CDN URL: `//wzrd.in/bundle/jquery-once@2.0.0-alpha.9` +- CDN URL: `//wzrd.in/bundle/jquery-once@2.0.0-alpha.10` ### [Ender](http://ender.jit.su/) - Use: `require('jquery-once')` @@ -62,11 +62,11 @@ Install dependencies through [npm](http://npmjs.org): npm install -Run the following command to run tests: +Compile and run tests with the test command: - npm run-script test + npm test -Build the project with: +Build the project for release with: npm run-script release @@ -120,3 +120,5 @@ These amazing people have contributed code to this project: [Become a contributor!](https://github.com/RobLoach/jquery-once/blob/master/CONTRIBUTING.md#files) <!-- /BACKERS --> + + @@ -2,7 +2,7 @@ "name": "jquery-once", "homepage": "http://github.com/robloach/jquery-once", "description": "jQuery Once", - "version": "2.0.0-alpha.9", + "version": "2.0.0-alpha.10", "main": "jquery.once.js", "ignore": [ "*.json", @@ -19,10 +19,12 @@ "jquery": "~2.1.1" }, "devDependencies": { + "coffee-script": "~1.8.0", + "coffeelint": "~1.6.1", "grunt": "~0.4.5", "grunt-contrib-qunit": "~0.5.2", "grunt-contrib-uglify": "~0.6.0", - "grunt-eslint": "~1.1.0", - "projectz": "~0.3.15" + "projectz": "~0.3.15", + "qunitjs": "~1.15.0" } }
\ No newline at end of file diff --git a/component.json b/component.json index e952219..b892739 100644 --- a/component.json +++ b/component.json @@ -4,7 +4,7 @@ "homepage": "http://github.com/robloach/jquery-once", "description": "Act on jQuery elements only once.", "license": "GPL-2.0", - "version": "2.0.0-alpha.9", + "version": "2.0.0-alpha.10", "keywords": [ "jquery" ], diff --git a/composer.json b/composer.json index 32cea87..554bf6a 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,8 @@ ], "files": [ "jquery.once.min.js", - "jquery.once.js.map" + "jquery.once.js.map", + "jquery.once.litcoffee" ], "shim": { "deps": ["jquery"] diff --git a/jquery.once.js.map b/jquery.once.js.map index c8046f5..bc71b56 100644 --- a/jquery.once.js.map +++ b/jquery.once.js.map @@ -6,5 +6,5 @@ "jquery.once.litcoffee" ], "names": [], - "mappings": ";AAaI;AAAA,EAAA,CAAC,SAAC,OAAD,GAAA;AACC,IAAA,IAAG,MAAA,CAAA,OAAA,KAAkB,QAArB;AACE,MAAA,OAAA,CAAQ,OAAA,CAAQ,QAAR,CAAR,CAAA,CADF;KAAA,MAEK,IAAG,MAAA,CAAA,MAAA,KAAiB,UAAjB,IAAgC,MAAM,CAAC,GAA1C;AACH,MAAA,MAAA,CAAO,CAAC,QAAD,CAAP,EAAmB,OAAnB,CAAA,CADG;KAAA,MAAA;AAGH,MAAA,OAAA,CAAQ,MAAR,CAAA,CAHG;KAHN;EAAA,CAAD,CAAA,CAQE,SAAC,CAAD,GAAA;AACA,QAAA,IAAA;AAAA,IAAA,IAAA,GAAO,CAAP,CAAA;AAAA,IA0BA,CAAC,CAAC,EAAE,CAAC,IAAL,GAAY,SAAC,EAAD,GAAA;AAEV,UAAA,IAAA;AAAA,MAAA,IAAmE,CAAA,EAAnE;AAAA,cAAU,IAAA,KAAA,CAAM,8CAAN,CAAV,CAAA;OAAA;AAAA,MAGA,IAAA,GAAO,cAAA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D,GAAA;AAEV,UAAA,IAAA;AAAA,MAAA,IAAmE,CAAA,EAAnE;AAAA,cAAU,IAAA,KAAA,CAAM,8CAAN,CAAV,CAAA;OAAA;AAAA,MAGA,IAAA,GAAO,cAAA,GAAiB,EAHxB,CAAA;aAMA,IAAC,CAAA,MAAD,CAAQ,SAAA,GAAA;eACN,CAAA,CAAE,IAAF,CAAO,CAAC,IAAR,CAAa,IAAb,CAAA,KAAwB,KADlB;MAAA,CAAR,CAEA,CAAC,IAFD,CAEM,IAFN,EAEY,IAFZ,EARU;IAAA,CA1BZ,CAAA;AAAA,IAiEA,CAAC,CAAC,EAAE,CAAC,UAAL,GAAkB,SAAC,EAAD,GAAA;aAEhB,IAAC,CAAA,QAAD,CAAU,EAAV,CAAa,CAAC,UAAd,CAAyB,cAAA,GAAiB,EAA1C,EAFgB;IAAA,CAjElB,CAAA;AAAA,IAgGA,CAAC,CAAC,EAAE,CAAC,QAAL,GAAgB,SAAC,EAAD,GAAA;AAEd,UAAA,IAAA;AAAA,MAAA,IAAA,GAAO,cAAA,GAAiB,EAAxB,CAAA;aACA,IAAC,CAAA,MAAD,CAAQ,SAAA,GAAA;eACN,CAAA,CAAE,IAAF,CAAO,CAAC,IAAR,CAAa,IAAb,CAAA,KAAsB,KADhB;MAAA,CAAR,EAHc;IAAA,CAhGhB,CADA;EAAA,CARF,CAAA,CAAA;AAAA" }
\ No newline at end of file diff --git a/jquery.once.litcoffee b/jquery.once.litcoffee index 445e22a..86bbfa1 100644 --- a/jquery.once.litcoffee +++ b/jquery.once.litcoffee @@ -68,12 +68,11 @@ Removes the once data from the given elements, based on the given ID. * `id` *string* A required string representing the name of the data id which should be used when filtering the elements. This only filters elements that have already been processed by the once function. The id should be the same id -that was originally passed to the once() function. +that was originally passed to the `.once()` function. #### Returns -jQuery element collection of elements that now have their once -data removed. +jQuery element collection that had their `once` data removed. #### Example diff --git a/jquery.once.min.js b/jquery.once.min.js index 45302c6..6173fab 100644 --- a/jquery.once.min.js +++ b/jquery.once.min.js @@ -1,4 +1,4 @@ -/*! jQuery Once - v2.0.0-alpha.9 - 10/16/2014 - https://github.com/RobLoach/jquery-once +/*! jQuery Once - v2.0.0-alpha.10 - 11/3/2014 - https://github.com/RobLoach/jquery-once * (c) 2014 Rob Loach (http://github.com/RobLoach) * Licensed GPL-2.0, MIT */ -!function(a){"use strict";"object"==typeof exports?a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){"use strict";a.fn.once=function(b){if(!b)throw new Error("An ID is required when calling jQuery.once()");var c="jquery-once-"+b;return this.filter(function(){return a(this).data(c)!==!0}).data(c,!0)},a.fn.removeOnce=function(a){return this.findOnce(a).removeData("jquery-once-"+a)},a.fn.findOnce=function(b){var c="jquery-once-"+b;return this.filter(function(){return a(this).data(c)===!0})}});
\ No newline at end of file +(function(){!function(a){"object"==typeof exports?a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){var b;b=0,a.fn.once=function(b){var c;if(!b)throw new Error("An ID is required when calling jQuery.once()");return c="jquery-once-"+b,this.filter(function(){return a(this).data(c)!==!0}).data(c,!0)},a.fn.removeOnce=function(a){return this.findOnce(a).removeData("jquery-once-"+a)},a.fn.findOnce=function(b){var c;return c="jquery-once-"+b,this.filter(function(){return a(this).data(c)===!0})}})}).call(this);
\ No newline at end of file diff --git a/once.jquery.json b/once.jquery.json index d562ac2..a159a4d 100644 --- a/once.jquery.json +++ b/once.jquery.json @@ -6,7 +6,7 @@ "jquery", "once" ], - "version": "2.0.0-alpha.9", + "version": "2.0.0-alpha.10", "author": { "name": "Rob Loach", "url": "http://robloach.net" diff --git a/package.json b/package.json index b617297..bcbe91e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "jquery-once", "title": "jQuery Once", "description": "Act on jQuery elements only once.", - "version": "2.0.0-alpha.9", + "version": "2.0.0-alpha.10", "keywords": [ "jquery" ], @@ -61,8 +61,9 @@ "compile": "./node_modules/.bin/coffee -m -c *.litcoffee", "coffeelint": "./node_modules/.bin/coffeelint *.litcoffee", "test": "npm run-script coffeelint && npm run-script compile && npm run-script qunit", - "qunit": "grunt qunit", "projectz": "./node_modules/.bin/projectz compile", - "release": "npm run-script compile && grunt release && npm run-script projectz" + "release": "npm run-script test && npm run-script uglify && npm run-script projectz", + "uglify": "grunt uglify", + "qunit": "grunt qunit" } -} +}
\ No newline at end of file |