common js suport
This commit is contained in:
parent
7cc527149b
commit
5472f95252
1 changed files with 5 additions and 0 deletions
|
|
@ -8,6 +8,11 @@
|
|||
define(['jquery', 'lodash', 'jquery-ui/core', 'jquery-ui/widget', 'jquery-ui/mouse', 'jquery-ui/draggable',
|
||||
'jquery-ui/resizable'], factory);
|
||||
}
|
||||
else if(typeof exports !== 'undefined') {
|
||||
var _ = require("lodash");
|
||||
try { jQuery = require('jquery'); } catch(e) {}
|
||||
factory(jQuery, _);
|
||||
}
|
||||
else {
|
||||
factory(jQuery, _);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue