Browse Source

Refix #3855 to fix scoping, allow for 'global' var without polluting global namespace

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

6
src/definitions/behaviors/api.js

@ -9,12 +9,12 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
@ -1165,4 +1165,4 @@ $.api.settings = {
})( jQuery, global, document );
})( jQuery, window, document );

469
src/definitions/behaviors/colorize.js

@ -9,274 +9,273 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (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) )
? $.extend(true, {}, $.fn.colorize.settings, parameters)
: $.extend({}, $.fn.colorize.settings),
// hoist arguments
moduleArguments = arguments || false
;
$(this)
.each(function(instanceIndex) {
$.fn.colorize = function(parameters) {
var
settings = ( $.isPlainObject(parameters) )
? $.extend(true, {}, $.fn.colorize.settings, parameters)
: $.extend({}, $.fn.colorize.settings),
// hoist arguments
moduleArguments = arguments || false
;
$(this)
.each(function(instanceIndex) {
var
$module = $(this),
var
$module = $(this),
mainCanvas = $('<canvas />')[0],
imageCanvas = $('<canvas />')[0],
overlayCanvas = $('<canvas />')[0],
mainCanvas = $('<canvas />')[0],
imageCanvas = $('<canvas />')[0],
overlayCanvas = $('<canvas />')[0],
backgroundImage = new Image(),
backgroundImage = new Image(),
// defs
mainContext,
imageContext,
overlayContext,
// defs
mainContext,
imageContext,
overlayContext,
image,
imageName,
image,
imageName,
width,
height,
width,
height,
// shortucts
colors = settings.colors,
paths = settings.paths,
namespace = settings.namespace,
error = settings.error,
// shortucts
colors = settings.colors,
paths = settings.paths,
namespace = settings.namespace,
error = settings.error,
// boilerplate
instance = $module.data('module-' + namespace),
module
;
// boilerplate
instance = $module.data('module-' + namespace),
module
;
module = {
module = {
checkPreconditions: function() {
module.debug('Checking pre-conditions');
checkPreconditions: function() {
module.debug('Checking pre-conditions');
if( !$.isPlainObject(colors) || $.isEmptyObject(colors) ) {
module.error(error.undefinedColors);
return false;
}
return true;
},
if( !$.isPlainObject(colors) || $.isEmptyObject(colors) ) {
module.error(error.undefinedColors);
return false;
}
return true;
},
async: function(callback) {
if(settings.async) {
setTimeout(callback, 0);
}
else {
callback();
}
},
async: function(callback) {
if(settings.async) {
setTimeout(callback, 0);
}
else {
callback();
}
},
getMetadata: function() {
module.debug('Grabbing metadata');
image = $module.data('image') || settings.image || undefined;
imageName = $module.data('name') || settings.name || instanceIndex;
width = settings.width || $module.width();
height = settings.height || $module.height();
if(width === 0 || height === 0) {
module.error(error.undefinedSize);
}
},
getMetadata: function() {
module.debug('Grabbing metadata');
image = $module.data('image') || settings.image || undefined;
imageName = $module.data('name') || settings.name || instanceIndex;
width = settings.width || $module.width();
height = settings.height || $module.height();
if(width === 0 || height === 0) {
module.error(error.undefinedSize);
}
},
initialize: function() {
module.debug('Initializing with colors', colors);
if( module.checkPreconditions() ) {
initialize: function() {
module.debug('Initializing with colors', colors);
if( module.checkPreconditions() ) {
module.async(function() {
module.getMetadata();
module.canvas.create();
module.draw.image(function() {
module.draw.colors();
module.canvas.merge();
});
$module
.data('module-' + namespace, module)
;
});
}
},
redraw: function() {
module.debug('Redrawing image');
module.async(function() {
module.canvas.clear();
module.draw.colors();
module.canvas.merge();
});
},
module.getMetadata();
module.canvas.create();
change: {
color: function(colorName, color) {
module.debug('Changing color', colorName);
if(colors[colorName] === undefined) {
module.error(error.missingColor);
return false;
}
colors[colorName] = color;
module.redraw();
module.draw.image(function() {
module.draw.colors();
module.canvas.merge();
});
$module
.data('module-' + namespace, module)
;
});
}
},
redraw: function() {
module.debug('Redrawing image');
module.async(function() {
module.canvas.clear();
module.draw.colors();
module.canvas.merge();
});
},
change: {
color: function(colorName, color) {
module.debug('Changing color', colorName);
if(colors[colorName] === undefined) {
module.error(error.missingColor);
return false;
}
},
colors[colorName] = color;
module.redraw();
}
},
canvas: {
create: function() {
module.debug('Creating canvases');
canvas: {
create: function() {
module.debug('Creating canvases');
mainCanvas.width = width;
mainCanvas.height = height;
imageCanvas.width = width;
imageCanvas.height = height;
overlayCanvas.width = width;
overlayCanvas.height = height;
mainCanvas.width = width;
mainCanvas.height = height;
imageCanvas.width = width;
imageCanvas.height = height;
overlayCanvas.width = width;
overlayCanvas.height = height;
mainContext = mainCanvas.getContext('2d');
imageContext = imageCanvas.getContext('2d');
overlayContext = overlayCanvas.getContext('2d');
mainContext = mainCanvas.getContext('2d');
imageContext = imageCanvas.getContext('2d');
overlayContext = overlayCanvas.getContext('2d');
$module
.append( mainCanvas )
;
mainContext = $module.children('canvas')[0].getContext('2d');
},
clear: function(context) {
module.debug('Clearing canvas');
overlayContext.fillStyle = '#FFFFFF';
overlayContext.fillRect(0, 0, width, height);
},
merge: function() {
if( !$.isFunction(mainContext.blendOnto) ) {
module.error(error.missingPlugin);
return;
}
mainContext.putImageData( imageContext.getImageData(0, 0, width, height), 0, 0);
overlayContext.blendOnto(mainContext, 'multiply');
}
$module
.append( mainCanvas )
;
mainContext = $module.children('canvas')[0].getContext('2d');
},
clear: function(context) {
module.debug('Clearing canvas');
overlayContext.fillStyle = '#FFFFFF';
overlayContext.fillRect(0, 0, width, height);
},
merge: function() {
if( !$.isFunction(mainContext.blendOnto) ) {
module.error(error.missingPlugin);
return;
}
mainContext.putImageData( imageContext.getImageData(0, 0, width, height), 0, 0);
overlayContext.blendOnto(mainContext, 'multiply');
}
},
draw: {
image: function(callback) {
module.debug('Drawing image');
callback = callback || function(){};
if(image) {
backgroundImage.src = image;
backgroundImage.onload = function() {
imageContext.drawImage(backgroundImage, 0, 0);
callback();
};
}
else {
module.error(error.noImage);
callback();
}
},
draw: {
colors: function() {
module.debug('Drawing color overlays', colors);
$.each(colors, function(colorName, color) {
settings.onDraw(overlayContext, imageName, colorName, color);
});
image: function(callback) {
module.debug('Drawing image');
callback = callback || function(){};
if(image) {
backgroundImage.src = image;
backgroundImage.onload = function() {
imageContext.drawImage(backgroundImage, 0, 0);
callback();
};
}
else {
module.error(error.noImage);
callback();
}
},
debug: function(message, variableName) {
if(settings.debug) {
if(variableName !== undefined) {
console.info(settings.name + ': ' + message, variableName);
}
else {
console.info(settings.name + ': ' + message);
}
colors: function() {
module.debug('Drawing color overlays', colors);
$.each(colors, function(colorName, color) {
settings.onDraw(overlayContext, imageName, colorName, color);
});
}
},
debug: function(message, variableName) {
if(settings.debug) {
if(variableName !== undefined) {
console.info(settings.name + ': ' + message, variableName);
}
},
error: function(errorMessage) {
console.warn(settings.name + ': ' + errorMessage);
},
invoke: function(methodName, context, methodArguments) {
var
method
;
methodArguments = methodArguments || Array.prototype.slice.call( arguments, 2 );
if(typeof methodName == 'string' && instance !== undefined) {
methodName = methodName.split('.');
$.each(methodName, function(index, name) {
if( $.isPlainObject( instance[name] ) ) {
instance = instance[name];
return true;
}
else if( $.isFunction( instance[name] ) ) {
method = instance[name];
return true;
}
module.error(settings.error.method);
return false;
});
else {
console.info(settings.name + ': ' + message);
}
return ( $.isFunction( method ) )
? method.apply(context, methodArguments)
: false
;
}
};
if(instance !== undefined && moduleArguments) {
// simpler than invoke realizing to invoke itself (and losing scope due prototype.call()
if(moduleArguments[0] == 'invoke') {
moduleArguments = Array.prototype.slice.call( moduleArguments, 1 );
},
error: function(errorMessage) {
console.warn(settings.name + ': ' + errorMessage);
},
invoke: function(methodName, context, methodArguments) {
var
method
;
methodArguments = methodArguments || Array.prototype.slice.call( arguments, 2 );
if(typeof methodName == 'string' && instance !== undefined) {
methodName = methodName.split('.');
$.each(methodName, function(index, name) {
if( $.isPlainObject( instance[name] ) ) {
instance = instance[name];
return true;
}
else if( $.isFunction( instance[name] ) ) {
method = instance[name];
return true;
}
module.error(settings.error.method);
return false;
});
}
return module.invoke(moduleArguments[0], this, Array.prototype.slice.call( moduleArguments, 1 ) );
return ( $.isFunction( method ) )
? method.apply(context, methodArguments)
: false
;
}
};
if(instance !== undefined && moduleArguments) {
// simpler than invoke realizing to invoke itself (and losing scope due prototype.call()
if(moduleArguments[0] == 'invoke') {
moduleArguments = Array.prototype.slice.call( moduleArguments, 1 );
}
// initializing
module.initialize();
})
;
return this;
};
$.fn.colorize.settings = {
name : 'Image Colorizer',
debug : true,
namespace : 'colorize',
onDraw : function(overlayContext, imageName, colorName, color) {},
// whether to block execution while updating canvas
async : true,
// object containing names and default values of color regions
colors : {},
metadata: {
image : 'image',
name : 'name'
},
error: {
noImage : 'No tracing image specified',
undefinedColors : 'No default colors specified.',
missingColor : 'Attempted to change color that does not exist',
missingPlugin : 'Blend onto plug-in must be included',
undefinedHeight : 'The width or height of image canvas could not be automatically determined. Please specify a height.'
}
};
})( jQuery, global, document );
return module.invoke(moduleArguments[0], this, Array.prototype.slice.call( moduleArguments, 1 ) );
}
// initializing
module.initialize();
})
;
return this;
};
$.fn.colorize.settings = {
name : 'Image Colorizer',
debug : true,
namespace : 'colorize',
onDraw : function(overlayContext, imageName, colorName, color) {},
// whether to block execution while updating canvas
async : true,
// object containing names and default values of color regions
colors : {},
metadata: {
image : 'image',
name : 'name'
},
error: {
noImage : 'No tracing image specified',
undefinedColors : 'No default colors specified.',
missingColor : 'Attempted to change color that does not exist',
missingPlugin : 'Blend onto plug-in must be included',
undefinedHeight : 'The width or height of image canvas could not be automatically determined. Please specify a height.'
}
};
})( jQuery, window, document );

17
src/definitions/behaviors/form.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.form = function(parameters) {
@ -1067,7 +1066,7 @@ $.fn.form.settings = {
regExp: {
bracket : /\[(.*)\]/i,
decimal : /^\d*(\.)\d+/,
email : "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",
email : /.+@.+\..+/i,
escape : /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,
flags : /^\/(.*)\/(.*)?/,
integer : /^\-?\d+$/,
@ -1530,4 +1529,4 @@ $.fn.form.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

15
src/definitions/behaviors/state.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.state = function(parameters) {
@ -707,4 +706,4 @@ $.fn.state.settings = {
})( jQuery, global, document );
})( jQuery, window, document );

15
src/definitions/behaviors/visibility.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.visibility = function(parameters) {
@ -1223,4 +1222,4 @@ $.fn.visibility.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

13
src/definitions/behaviors/visit.js

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

5
src/definitions/globals/site.js

@ -8,7 +8,8 @@
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
$.site = $.fn.site = function(parameters) {
var
@ -484,4 +485,4 @@ $.extend($.expr[ ":" ], {
});
})( jQuery, global, document );
})( jQuery, window, document );

13
src/definitions/modules/accordion.js

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

15
src/definitions/modules/checkbox.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.checkbox = function(parameters) {
@ -822,4 +821,4 @@ $.fn.checkbox.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

15
src/definitions/modules/dimmer.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.dimmer = function(parameters) {
@ -707,4 +706,4 @@ $.fn.dimmer.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

15
src/definitions/modules/dropdown.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.dropdown = function(parameters) {
@ -3529,4 +3528,4 @@ $.fn.dropdown.settings.templates = {
};
})( jQuery, global, document );
})( jQuery, window, document );

13
src/definitions/modules/embed.js

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

15
src/definitions/modules/modal.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.modal = function(parameters) {
@ -905,4 +904,4 @@ $.fn.modal.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

13
src/definitions/modules/nag.js

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

13
src/definitions/modules/popup.js

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

15
src/definitions/modules/progress.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
var
@ -900,4 +899,4 @@ $.fn.progress.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

13
src/definitions/modules/rating.js

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

13
src/definitions/modules/search.js

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

15
src/definitions/modules/shape.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.shape = function(parameters) {
@ -891,4 +890,4 @@ $.fn.shape.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

15
src/definitions/modules/sidebar.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.sidebar = function(parameters) {
@ -1035,4 +1034,4 @@ $.fn.sidebar.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

15
src/definitions/modules/sticky.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.sticky = function(parameters) {
@ -915,4 +914,4 @@ $.fn.sticky.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );

13
src/definitions/modules/tab.js

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

15
src/definitions/modules/transition.js

@ -9,16 +9,15 @@
*
*/
;(function ( $, window, document, undefined ) {
;(function ($, window, document, undefined) {
"use strict";
var
global = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
window = (typeof window != 'undefined' && window.Math == Math)
? window
: (typeof self != 'undefined' && self.Math == Math)
? self
: Function('return this')()
;
$.fn.transition = function() {
@ -1089,4 +1088,4 @@ $.fn.transition.settings = {
};
})( jQuery, global, document );
})( jQuery, window, document );
Loading…
Cancel
Save