将旧模块改写为 AMD 模块
This commit is contained in:
1 parent
9ad52b5c5f
commit
1d087089ed
7 files changed
+581
-2370
No files matched your search
@@ -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