diff --git a/src/definitions/behaviors/api.js b/src/definitions/behaviors/api.js index 21d143fed..63b6ff2b1 100644 --- a/src/definitions/behaviors/api.js +++ b/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 ); diff --git a/src/definitions/behaviors/colorize.js b/src/definitions/behaviors/colorize.js index aeb628748..ea2218416 100644 --- a/src/definitions/behaviors/colorize.js +++ b/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 = $('')[0], - imageCanvas = $('')[0], - overlayCanvas = $('')[0], + mainCanvas = $('')[0], + imageCanvas = $('')[0], + overlayCanvas = $('')[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 ); diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 3e3aa60e9..14ef0bd59 100644 --- a/src/definitions/behaviors/form.js +++ b/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 ); diff --git a/src/definitions/behaviors/state.js b/src/definitions/behaviors/state.js index 769d597af..1a6e69b21 100644 --- a/src/definitions/behaviors/state.js +++ b/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 ); diff --git a/src/definitions/behaviors/visibility.js b/src/definitions/behaviors/visibility.js index 4cceb89f2..5b28af74d 100644 --- a/src/definitions/behaviors/visibility.js +++ b/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 ); diff --git a/src/definitions/behaviors/visit.js b/src/definitions/behaviors/visit.js index e9ca13fdc..b3f2ffbfc 100644 --- a/src/definitions/behaviors/visit.js +++ b/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 ); diff --git a/src/definitions/globals/site.js b/src/definitions/globals/site.js index 94e46e487..00bb4943f 100644 --- a/src/definitions/globals/site.js +++ b/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 ); diff --git a/src/definitions/modules/accordion.js b/src/definitions/modules/accordion.js index de0ec4b30..1a528fb83 100644 --- a/src/definitions/modules/accordion.js +++ b/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 ); diff --git a/src/definitions/modules/checkbox.js b/src/definitions/modules/checkbox.js index c1481dae7..c0a5cbd2c 100644 --- a/src/definitions/modules/checkbox.js +++ b/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 ); diff --git a/src/definitions/modules/dimmer.js b/src/definitions/modules/dimmer.js index 3ada64a03..62cbed175 100644 --- a/src/definitions/modules/dimmer.js +++ b/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 ); diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index b0bc86479..3b30bd498 100644 --- a/src/definitions/modules/dropdown.js +++ b/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 ); diff --git a/src/definitions/modules/embed.js b/src/definitions/modules/embed.js index 7e824e086..dfac22707 100644 --- a/src/definitions/modules/embed.js +++ b/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 ); diff --git a/src/definitions/modules/modal.js b/src/definitions/modules/modal.js index 8c64a7996..2b8fc83de 100644 --- a/src/definitions/modules/modal.js +++ b/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 ); diff --git a/src/definitions/modules/nag.js b/src/definitions/modules/nag.js index 27edc4225..b7cc52bb5 100644 --- a/src/definitions/modules/nag.js +++ b/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 ); diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index 5e7f292a9..fb8218e59 100644 --- a/src/definitions/modules/popup.js +++ b/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 ); diff --git a/src/definitions/modules/progress.js b/src/definitions/modules/progress.js index 816013f01..ccee96bfc 100644 --- a/src/definitions/modules/progress.js +++ b/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 ); diff --git a/src/definitions/modules/rating.js b/src/definitions/modules/rating.js index c224ae47f..bfa6a08a3 100644 --- a/src/definitions/modules/rating.js +++ b/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 ); diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index 4f5a7e095..099ffa20f 100644 --- a/src/definitions/modules/search.js +++ b/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 ); diff --git a/src/definitions/modules/shape.js b/src/definitions/modules/shape.js index 1f3cbe8d9..515d1bf72 100644 --- a/src/definitions/modules/shape.js +++ b/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 ); diff --git a/src/definitions/modules/sidebar.js b/src/definitions/modules/sidebar.js index 1d37a8a5c..87774665c 100644 --- a/src/definitions/modules/sidebar.js +++ b/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 ); diff --git a/src/definitions/modules/sticky.js b/src/definitions/modules/sticky.js index ccd9b164c..8a423ec68 100644 --- a/src/definitions/modules/sticky.js +++ b/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 ); diff --git a/src/definitions/modules/tab.js b/src/definitions/modules/tab.js index cb031ddbb..e1f995463 100644 --- a/src/definitions/modules/tab.js +++ b/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 ); diff --git a/src/definitions/modules/transition.js b/src/definitions/modules/transition.js index c77aa3b9c..829e53aa2 100644 --- a/src/definitions/modules/transition.js +++ b/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 );