File tree 2 files changed +56
-6
lines changed
2 files changed +56
-6
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
3
- * Version 1.7.13 - http://noelboss.github.io/featherlight/
3
+ * Version 1.7.13-UMD - http://noelboss.github.io/featherlight/
4
4
*
5
5
* Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
6
6
* MIT Licensed.
7
7
**/
8
- ( function ( $ ) {
8
+ ( function ( factory ) {
9
+ if ( typeof define === 'function' && define . amd ) {
10
+ // AMD. Register as an anonymous module.
11
+ define ( [ 'jquery' ] , factory ) ;
12
+ } else if ( typeof module === 'object' && module . exports ) {
13
+ // Node/CommonJS
14
+ module . exports = function ( root , jQuery ) {
15
+ if ( jQuery === undefined ) {
16
+ // require('jQuery') returns a factory that requires window to
17
+ // build a jQuery instance, we normalize how we use modules
18
+ // that require this pattern but the window provided is a noop
19
+ // if it's defined (how jquery works)
20
+ if ( typeof window !== 'undefined' ) {
21
+ jQuery = require ( 'jquery' ) ;
22
+ } else {
23
+ jQuery = require ( 'jquery' ) ( root ) ;
24
+ }
25
+ }
26
+ factory ( jQuery ) ;
27
+ return jQuery ;
28
+ } ;
29
+ } else {
30
+ // Browser globals
31
+ factory ( jQuery ) ;
32
+ }
33
+ } ) ( function ( $ ) {
9
34
"use strict" ;
10
35
11
36
var warn = function ( m ) {
167
192
/* bind featherlight on ready if config autoBind is set */
168
193
$ ( document ) . ready ( function ( ) { FeatherlightGallery . _onReady ( ) ; } ) ;
169
194
170
- } ( jQuery ) ) ;
195
+ } ) ;
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Featherlight - ultra slim jQuery lightbox
3
- * Version 1.7.13 - http://noelboss.github.io/featherlight/
3
+ * Version 1.7.13-UMD - http://noelboss.github.io/featherlight/
4
4
*
5
5
* Copyright 2018, Noël Raoul Bossart (http://www.noelboss.com)
6
6
* MIT Licensed.
7
7
**/
8
- ( function ( $ ) {
8
+ ( function ( factory ) {
9
+ if ( typeof define === 'function' && define . amd ) {
10
+ // AMD. Register as an anonymous module.
11
+ define ( [ 'jquery' ] , factory ) ;
12
+ } else if ( typeof module === 'object' && module . exports ) {
13
+ // Node/CommonJS
14
+ module . exports = function ( root , jQuery ) {
15
+ if ( jQuery === undefined ) {
16
+ // require('jQuery') returns a factory that requires window to
17
+ // build a jQuery instance, we normalize how we use modules
18
+ // that require this pattern but the window provided is a noop
19
+ // if it's defined (how jquery works)
20
+ if ( typeof window !== 'undefined' ) {
21
+ jQuery = require ( 'jquery' ) ;
22
+ } else {
23
+ jQuery = require ( 'jquery' ) ( root ) ;
24
+ }
25
+ }
26
+ factory ( jQuery ) ;
27
+ return jQuery ;
28
+ } ;
29
+ } else {
30
+ // Browser globals
31
+ factory ( jQuery ) ;
32
+ }
33
+ } ) ( function ( $ ) {
9
34
"use strict" ;
10
35
11
36
if ( 'undefined' === typeof $ ) {
640
665
641
666
/* bind featherlight on ready if config autoBind is set */
642
667
$ ( document ) . ready ( function ( ) { Featherlight . _onReady ( ) ; } ) ;
643
- } ( jQuery ) ) ;
668
+ } ) ;
You can’t perform that action at this time.
0 commit comments