File tree 1 file changed +14
-4
lines changed 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 3
3
* http://www.ericmmartin.com/projects/simplemodal/
4
4
* Copyright (c) 2011 Eric Martin (http://twitter.com/ericmmartin)
5
5
* Dual licensed under the MIT and GPL licenses
6
- * Date:
6
+ * Date:
7
7
*/
8
8
9
9
/**
60
60
* @author Eric Martin (http://ericmmartin.com)
61
61
* @version @VERSION
62
62
*/
63
- ; ( function ( $ ) {
63
+
64
+ ( function ( factory ) {
65
+ if ( typeof define === 'function' && define . amd ) {
66
+ // AMD. Register as an anonymous module.
67
+ define ( [ 'jquery' ] , factory ) ;
68
+ } else {
69
+ // Browser globals
70
+ factory ( jQuery ) ;
71
+ }
72
+ }
73
+ ( function ( $ ) {
64
74
var d = [ ] ,
65
75
doc = $ ( document ) ,
66
76
ie6 = $ . browser . msie && parseInt ( $ . browser . version ) === 6 && typeof window [ 'XMLHttpRequest' ] !== 'object' ,
325
335
. attr ( 'id' , s . o . containerId )
326
336
. addClass ( 'simplemodal-container' )
327
337
. css ( $ . extend (
328
- { position : s . o . fixed ? 'fixed' : 'absolute' } ,
338
+ { position : s . o . fixed ? 'fixed' : 'absolute' } ,
329
339
s . o . containerCss ,
330
340
{ display : 'none' , zIndex : s . o . zIndex + 2 }
331
341
) )
699
709
}
700
710
}
701
711
} ;
702
- } ) ( jQuery ) ;
712
+ } ) ) ;
You can’t perform that action at this time.
0 commit comments