Browse Source

Allows modules to work in environment with global other than window #3855

pull/3879/merge
Jack Lukic 9 years ago
parent
commit
4292ab5aa1
23 changed files with 207 additions and 23 deletions
  1. 10
      src/definitions/behaviors/api.js
  2. 10
      src/definitions/behaviors/colorize.js
  3. 10
      src/definitions/behaviors/form.js
  4. 10
      src/definitions/behaviors/state.js
  5. 10
      src/definitions/behaviors/visibility.js
  6. 10
      src/definitions/behaviors/visit.js
  7. 2
      src/definitions/globals/site.js
  8. 10
      src/definitions/modules/accordion.js
  9. 10
      src/definitions/modules/checkbox.js
  10. 10
      src/definitions/modules/dimmer.js
  11. 10
      src/definitions/modules/dropdown.js
  12. 10
      src/definitions/modules/embed.js
  13. 10
      src/definitions/modules/modal.js
  14. 10
      src/definitions/modules/nag.js
  15. 10
      src/definitions/modules/popup.js
  16. 18
      src/definitions/modules/progress.js
  17. 10
      src/definitions/modules/rating.js
  18. 10
      src/definitions/modules/search.js
  19. 10
      src/definitions/modules/shape.js
  20. 10
      src/definitions/modules/sidebar.js
  21. 10
      src/definitions/modules/sticky.js
  22. 10
      src/definitions/modules/tab.js
  23. 10
      src/definitions/modules/transition.js

10
src/definitions/behaviors/api.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.api = $.fn.api = function(parameters) {
var
@ -1157,4 +1165,4 @@ $.api.settings = {
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/behaviors/colorize.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.colorize = function(parameters) {
var
settings = ( $.isPlainObject(parameters) )
@ -271,4 +279,4 @@
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/behaviors/form.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.form = function(parameters) {
var
$allModules = $(this),
@ -1522,4 +1530,4 @@ $.fn.form.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/behaviors/state.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.state = function(parameters) {
var
$allModules = $(this),
@ -699,4 +707,4 @@ $.fn.state.settings = {
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/behaviors/visibility.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.visibility = function(parameters) {
var
$allModules = $(this),
@ -1215,4 +1223,4 @@ $.fn.visibility.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/behaviors/visit.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.visit = $.fn.visit = function(parameters) {
var
$allModules = $.isFunction(this)
@ -516,4 +524,4 @@ $.fn.visit.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

2
src/definitions/globals/site.js

@ -484,4 +484,4 @@ $.extend($.expr[ ":" ], {
});
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/accordion.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.accordion = function(parameters) {
var
$allModules = $(this),
@ -600,5 +608,5 @@ $.extend( $.easing, {
}
});
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/checkbox.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.checkbox = function(parameters) {
var
$allModules = $(this),
@ -814,4 +822,4 @@ $.fn.checkbox.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/dimmer.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.dimmer = function(parameters) {
var
$allModules = $(this),
@ -699,4 +707,4 @@ $.fn.dimmer.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/dropdown.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.dropdown = function(parameters) {
var
$allModules = $(this),
@ -3521,4 +3529,4 @@ $.fn.dropdown.settings.templates = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/embed.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.embed = function(parameters) {
var
@ -668,4 +676,4 @@ $.fn.embed.settings = {
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/modal.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.modal = function(parameters) {
var
$allModules = $(this),
@ -897,4 +905,4 @@ $.fn.modal.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/nag.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.nag = function(parameters) {
var
$allModules = $(this),
@ -491,4 +499,4 @@ $.fn.nag.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/popup.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.popup = function(parameters) {
var
$allModules = $(this),
@ -1442,4 +1450,4 @@ $.fn.popup.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

18
src/definitions/modules/progress.js

@ -13,6 +13,22 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.progress = function(parameters) {
var
$allModules = $(this),
@ -884,4 +900,4 @@ $.fn.progress.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/rating.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.rating = function(parameters) {
var
$allModules = $(this),
@ -499,4 +507,4 @@ $.fn.rating.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/search.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.search = function(parameters) {
var
$allModules = $(this),
@ -1341,4 +1349,4 @@ $.fn.search.settings = {
}
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/shape.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.shape = function(parameters) {
var
$allModules = $(this),
@ -883,4 +891,4 @@ $.fn.shape.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/sidebar.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.sidebar = function(parameters) {
var
$allModules = $(this),
@ -1027,4 +1035,4 @@ $.fn.sidebar.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/sticky.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.sticky = function(parameters) {
var
$allModules = $(this),
@ -907,4 +915,4 @@ $.fn.sticky.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/tab.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.tab = function(parameters) {
var
@ -913,4 +921,4 @@ $.fn.tab.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );

10
src/definitions/modules/transition.js

@ -13,6 +13,14 @@
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.transition = function() {
var
$allModules = $(this),
@ -1081,4 +1089,4 @@ $.fn.transition.settings = {
};
})( jQuery, window, document );
})( jQuery, global, document );
Loading…
Cancel
Save