将旧模块改写为 AMD 模块
This commit is contained in:
@@ -25,8 +25,13 @@
|
||||
* THE SOFTWARE.
|
||||
* ======================================================================== */
|
||||
|
||||
|
||||
+function ($) {
|
||||
!function(root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define(['jquery'], factory);
|
||||
} else {
|
||||
factory(root.jQuery);
|
||||
}
|
||||
}(this, function ($) {
|
||||
'use strict';
|
||||
|
||||
// VALIDATOR CLASS DEFINITION
|
||||
@@ -322,4 +327,4 @@
|
||||
})
|
||||
})
|
||||
|
||||
}(jQuery);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user