Browse Source

src : whitespace and comment fixes around isoTransform

pull/27/merge
David DeSandro 14 years ago
parent
commit
7528e89d5f
  1. 11
      jquery.isotope.js

11
jquery.isotope.js

@ -225,13 +225,11 @@
$.cssHooks.scale = { $.cssHooks.scale = {
set: function( elem, value ) { set: function( elem, value ) {
// properly parse strings
if ( typeof value === 'string' ) { if ( typeof value === 'string' ) {
value = parseFloat( value ); value = parseFloat( value );
} }
setIsoTransform( elem, 'scale', value ); setIsoTransform( elem, 'scale', value );
}, },
get: function( elem, computed ) { get: function( elem, computed ) {
var transform = $.data( elem, 'isoTransform' ); var transform = $.data( elem, 'isoTransform' );
@ -251,14 +249,12 @@
$.cssHooks.translate = { $.cssHooks.translate = {
set: function( elem, value ) { set: function( elem, value ) {
// all this would be for public ease-of-use, // all this would be for public use
// but we're leaving it out since this add-on is // properly parsing strings and whatnot
// only for internal-plugin use
// if ( typeof value === 'string' ) { // if ( typeof value === 'string' ) {
// value = value.split(' '); // value = value.split(' ');
// } // }
// //
//
// var i, val; // var i, val;
// for ( i = 0; i < 2; i++ ) { // for ( i = 0; i < 2; i++ ) {
// val = value[i]; // val = value[i];
@ -268,7 +264,6 @@
// } // }
setIsoTransform( elem, 'translate', value ); setIsoTransform( elem, 'translate', value );
}, },
get: function( elem, computed ) { get: function( elem, computed ) {

Loading…
Cancel
Save