Skip to content

Commit

Permalink
src : optoTranform -> isoTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jan 16, 2011
1 parent 661945c commit e99796a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions jquery.isotope.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,16 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
// jQuery
(function( $, undefined ){

// ========================= optoTransform ===============================

// ========================= isoTransform ===============================

/**
* provides hooks for .css({ scale: value, translate: x y })
* Progressively enhanced CSS transforms
* Uses hardware accelerated 3D transforms for Safari
* or falls back to 2D transforms.
*/
$.optoTransform = {
$.isoTransform = {

This comment has been minimized.

Copy link
@pomeh

pomeh Feb 9, 2011

Does this function really need to be in the jQuery object ?

This comment has been minimized.

Copy link
@desandro

desandro Feb 9, 2011

Author Member

I suppose not. Issue 11 opened

At one point, I may have been thinking that $.isoTransform would be more integrated into $.Isotope.


transformProp : getStyleProperty('transform'),

Expand Down Expand Up @@ -195,7 +197,7 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){

for ( fnName in data ) {
var transformValue = data[ fnName ],
getFn = $.optoTransform.fnUtils[ fnName ];
getFn = $.isoTransform.fnUtils[ fnName ];
transformObj[ fnName ] = getFn( transformValue );
}

Expand All @@ -213,7 +215,7 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
value = valueFns;

// set name to vendor specific property
elem.style[ $.optoTransform.transformProp ] = valueFns;
elem.style[ $.isoTransform.transformProp ] = valueFns;

}
};
Expand All @@ -229,7 +231,7 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
value = parseFloat( value );
}

$.optoTransform.set( elem, 'scale', value )
$.isoTransform.set( elem, 'scale', value )

},
get: function( elem, computed ) {
Expand Down Expand Up @@ -266,7 +268,7 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
// }
// }

$.optoTransform.set( elem, 'translate', value )
$.isoTransform.set( elem, 'translate', value )

},

Expand Down Expand Up @@ -726,7 +728,7 @@ window.Modernizr = window.Modernizr || (function(window,doc,undefined){
});

if ( this.usingTransforms ) {
atomUnstyle[ $.optoTransform.transformProp ] = 'none';
atomUnstyle[ $.isoTransform.transformProp ] = 'none';
}

this.$allAtoms
Expand Down

0 comments on commit e99796a

Please sign in to comment.