将旧模块改写为 AMD 模块

This commit is contained in:
virusdefender
2015-09-14 01:06:31 +08:00
parent 9ad52b5c5f
commit 1d087089ed
7 changed files with 581 additions and 2370 deletions

View File

@@ -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);
});