Browse Source

src : Wrap everything in the same self-executing function

pull/14/head
David DeSandro 14 years ago
parent
commit
9d7a367b65
  1. 19
      jquery.isotope.js

19
jquery.isotope.js

@ -10,6 +10,9 @@
*/ */
(function( window, $, undefined ){
// ========================= getStyleProperty by kangax =============================== // ========================= getStyleProperty by kangax ===============================
// http://perfectionkills.com/feature-testing-css-properties/ // http://perfectionkills.com/feature-testing-css-properties/
@ -33,7 +36,7 @@ var getStyleProperty = (function(){
if (typeof style[propName] === 'string') { if (typeof style[propName] === 'string') {
return (_cache[propName] = propName); return (_cache[propName] = propName);
} }
// capitalize // capitalize
uPropName = propName.charAt(0).toUpperCase() + propName.slice(1); uPropName = propName.charAt(0).toUpperCase() + propName.slice(1);
@ -65,14 +68,14 @@ var getStyleProperty = (function(){
* http://www.modernizr.com/license/ * http://www.modernizr.com/license/
*/ */
/* /*
* This version whittles down the script just to check support for * This version whittles down the script just to check support for
* CSS transitions, transforms, and 3D transforms. * CSS transitions, transforms, and 3D transforms.
*/ */
window.Modernizr = window.Modernizr || (function(window,doc,undefined){ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
var version = '1.6ish: miniModernizr for Isotope', var version = '1.6ish: miniModernizr for Isotope',
miniModernizr = {}, miniModernizr = {},
vendorCSSPrefixes = ' -o- -moz- -ms- -webkit- -khtml- '.split(' '), vendorCSSPrefixes = ' -o- -moz- -ms- -webkit- -khtml- '.split(' '),
@ -133,13 +136,9 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
docElement.className += ' ' + classes.join( ' ' ); docElement.className += ' ' + classes.join( ' ' );
return miniModernizr; return miniModernizr;
}(this,this.document));
}(this,this.document));
// jQuery
(function( $, undefined ){
// ========================= isoTransform =============================== // ========================= isoTransform ===============================
@ -1259,4 +1258,4 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
$.widget.bridge( 'isotope', $.Isotope ); $.widget.bridge( 'isotope', $.Isotope );
})( jQuery ); })( window, jQuery );

Loading…
Cancel
Save