Wrap existing JS modules in AMD module style
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
jQuery(function($) {
|
||||
// dom ready
|
||||
$(function() {
|
||||
define('admin', [
|
||||
'./ajax',
|
||||
'notice.js',
|
||||
'modal.js',
|
||||
'lib/handlebars.min.js',
|
||||
'handlebars_helpers.js'
|
||||
], function() {
|
||||
jQuery(function($) {
|
||||
// dom ready
|
||||
$(function() {
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user