File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 7
7
* http://trentrichardson.com/Impromptu/MIT-LICENSE.txt
8
8
*/
9
9
10
- ( function ( factory ) {
11
- if ( typeof define === 'function' && define . amd ) {
12
- define ( [ 'jquery' , 'jquery.ui' ] , factory ) ;
13
- } else {
14
- factory ( jQuery ) ;
15
- }
16
- } ( function ( $ ) {
10
+ ( function ( window , factory ) {
11
+ if ( typeof define === 'function' && define . amd ) {
12
+ // AMD. Register as an anonymous module.
13
+ define ( [ 'jquery' ] , function ( ) {
14
+ return factory . apply ( window , arguments ) ;
15
+ } ) ;
16
+ } else if ( typeof module === 'object' && module . exports ) {
17
+ // NodeJS.
18
+ module . exports = factory . call ( window , require ( 'jquery' ) ) ;
19
+ } else {
20
+ // Browser globals
21
+ factory . call ( window , window . jQuery ) ;
22
+ }
23
+ } ( typeof global === 'object' ? global : this , function ( $ ) {
24
+
17
25
18
26
/*
19
27
* Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded"
You can’t perform that action at this time.
0 commit comments