mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
jquery.once updated to v2.2.3
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* jQuery Once v2.1.2 - http://github.com/robloach/jquery-once
|
||||
* jQuery Once v2.2.3 - http://github.com/robloach/jquery-once
|
||||
* @license MIT, GPL-2.0
|
||||
* http://opensource.org/licenses/MIT
|
||||
* http://opensource.org/licenses/GPL-2.0
|
||||
@@ -17,7 +17,7 @@
|
||||
(function (factory) {
|
||||
'use strict';
|
||||
|
||||
if (typeof exports === 'object') {
|
||||
if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
|
||||
// CommonJS
|
||||
factory(require('jquery'));
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
@@ -38,16 +38,17 @@
|
||||
* @param {string} [id=once]
|
||||
* A string representing the ID to check. Defaults to `'once'`.
|
||||
*
|
||||
* @returns The valid ID name.
|
||||
* @returns {number} The valid ID name.
|
||||
*
|
||||
* @throws Error when an ID is provided, but not a string.
|
||||
* @throws TypeError when an ID is provided, but not a string.
|
||||
* @private
|
||||
*/
|
||||
var checkId = function (id) {
|
||||
id = id || 'once';
|
||||
if (typeof id !== 'string') {
|
||||
throw new Error('The jQuery Once id parameter must be a string');
|
||||
throw new TypeError('The jQuery Once id parameter must be a string');
|
||||
}
|
||||
|
||||
return id;
|
||||
};
|
||||
|
||||
@@ -58,7 +59,7 @@
|
||||
* The data ID used to determine whether the given elements have already
|
||||
* been processed or not. Defaults to `'once'`.
|
||||
*
|
||||
* @returns jQuery collection of elements that have now run once by
|
||||
* @returns {jQuery} jQuery collection of elements that have now run once by
|
||||
* the given ID.
|
||||
*
|
||||
* @example
|
||||
@@ -108,7 +109,7 @@
|
||||
* processed by the once function. The ID should be the same ID that was
|
||||
* originally passed to the once() function. Defaults to `'once'`.
|
||||
*
|
||||
* @returns jQuery collection of elements that were acted upon to remove their
|
||||
* @returns {jQuery} jQuery collection of elements that were acted upon to remove their
|
||||
* once data.
|
||||
*
|
||||
* @example
|
||||
@@ -143,7 +144,7 @@
|
||||
* been processed by the once function. The id should be the same id that
|
||||
* was originally passed to the once() function. Defaults to 'once'.
|
||||
*
|
||||
* @returns jQuery collection of elements that have been run once.
|
||||
* @returns {jQuery} jQuery collection of elements that have been run once.
|
||||
*
|
||||
* @example
|
||||
* ``` javascript
|
||||
|
4
e107_web/lib/jquery-once/jquery.once.min.js
vendored
4
e107_web/lib/jquery-once/jquery.once.min.js
vendored
@@ -1,8 +1,8 @@
|
||||
/*!
|
||||
* jQuery Once v2.1.2 - http://github.com/robloach/jquery-once
|
||||
* jQuery Once v2.2.3 - http://github.com/robloach/jquery-once
|
||||
* @license MIT, GPL-2.0
|
||||
* http://opensource.org/licenses/MIT
|
||||
* http://opensource.org/licenses/GPL-2.0
|
||||
*/
|
||||
(function(e){"use strict";if(typeof exports==="object"){e(require("jquery"))}else if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){"use strict";var n=function(e){e=e||"once";if(typeof e!=="string"){throw new Error("The jQuery Once id parameter must be a string")}return e};e.fn.once=function(t){var r="jquery-once-"+n(t);return this.filter(function(){return e(this).data(r)!==true}).data(r,true)};e.fn.removeOnce=function(e){return this.findOnce(e).removeData("jquery-once-"+n(e))};e.fn.findOnce=function(t){var r="jquery-once-"+n(t);return this.filter(function(){return e(this).data(r)===true})}});
|
||||
(function(e){"use strict";if(typeof exports==="object"&&typeof exports.nodeName!=="string"){e(require("jquery"))}else if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(t){"use strict";var r=function(e){e=e||"once";if(typeof e!=="string"){throw new TypeError("The jQuery Once id parameter must be a string")}return e};t.fn.once=function(e){var n="jquery-once-"+r(e);return this.filter(function(){return t(this).data(n)!==true}).data(n,true)};t.fn.removeOnce=function(e){return this.findOnce(e).removeData("jquery-once-"+r(e))};t.fn.findOnce=function(e){var n="jquery-once-"+r(e);return this.filter(function(){return t(this).data(n)===true})}});
|
||||
//# sourceMappingURL=jquery.once.min.js.map
|
@@ -1 +1 @@
|
||||
{"version":3,"sources":["jquery.once.js"],"names":["factory","exports","require","define","amd","jQuery","$","checkId","id","Error","fn","once","name","this","filter","data","removeOnce","findOnce","removeData"],"mappings":";;;;;;CAgBA,SAAWA,GACT,YAEA,UAAWC,WAAY,SAAU,CAE/BD,EAAQE,QAAQ,eACX,UAAWC,UAAW,YAAcA,OAAOC,IAAK,CAGrDD,QAAQ,UAAWH,OACd,CAGLA,EAAQK,WAET,SAAUC,GACX,YAaA,IAAIC,GAAU,SAAUC,GACtBA,EAAKA,GAAM,MACX,UAAWA,KAAO,SAAU,CAC1B,KAAM,IAAIC,OAAM,iDAElB,MAAOD,GAyCTF,GAAEI,GAAGC,KAAO,SAAUH,GAEpB,GAAII,GAAO,eAAiBL,EAAQC,EAGpC,OAAOK,MAAKC,OAAO,WACjB,MAAOR,GAAEO,MAAME,KAAKH,KAAU,OAC7BG,KAAKH,EAAM,MAiChBN,GAAEI,GAAGM,WAAa,SAAUR,GAE1B,MAAOK,MAAKI,SAAST,GAAIU,WAAW,eAAiBX,EAAQC,IAkC/DF,GAAEI,GAAGO,SAAW,SAAUT,GAExB,GAAII,GAAO,eAAiBL,EAAQC,EAEpC,OAAOK,MAAKC,OAAO,WACjB,MAAOR,GAAEO,MAAME,KAAKH,KAAU","file":"jquery.once.min.js"}
|
||||
{"version":3,"sources":["jquery.once.js"],"names":["factory","exports","nodeName","require","define","amd","jQuery","$","checkId","id","TypeError","fn","once","name","this","filter","data","removeOnce","findOnce","removeData"],"mappings":";;;;;;CAgBA,SAAWA,GACT,aAEA,UAAWC,UAAY,iBAAmBA,QAAQC,WAAa,SAAU,CAEvEF,EAAQG,QAAQ,gBACX,UAAWC,SAAW,YAAcA,OAAOC,IAAK,CAGrDD,OAAO,CAAC,UAAWJ,OACd,CAGLA,EAAQM,UAbZ,CAeG,SAAUC,GACX,aAaA,IAAIC,EAAU,SAAUC,GACtBA,EAAKA,GAAM,OACX,UAAWA,IAAO,SAAU,CAC1B,MAAM,IAAIC,UAAU,iDAGtB,OAAOD,GAyCTF,EAAEI,GAAGC,KAAO,SAAUH,GAEpB,IAAII,EAAO,eAAiBL,EAAQC,GAGpC,OAAOK,KAAKC,OAAO,WACjB,OAAOR,EAAEO,MAAME,KAAKH,KAAU,OAC7BG,KAAKH,EAAM,OAiChBN,EAAEI,GAAGM,WAAa,SAAUR,GAE1B,OAAOK,KAAKI,SAAST,GAAIU,WAAW,eAAiBX,EAAQC,KAkC/DF,EAAEI,GAAGO,SAAW,SAAUT,GAExB,IAAII,EAAO,eAAiBL,EAAQC,GAEpC,OAAOK,KAAKC,OAAO,WACjB,OAAOR,EAAEO,MAAME,KAAKH,KAAU","file":"jquery.once.min.js"}
|
Reference in New Issue
Block a user