Permalink
Browse files

Replaced unnecessary (and wrong) style id property from last commit w…

…ith array index.
  • Loading branch information...
1 parent 9dd5173 commit f0d3876e88413dc902700a4181f5b315424cb196 Kyle Robertson committed Jun 25, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 respond.src.js
View
@@ -117,7 +117,6 @@
for( ; j < eql; j++ ){
thisq = eachq[ j ];
mediastyles.push( {
- id : i + j,
media : thisq.match( /(only\s+)?([a-zA-Z]+)(\sand)?/ ) && RegExp.$2,
rules : rules.length - 1,
minw : thisq.match( /\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/ ) && parseFloat( RegExp.$1 ),
@@ -141,7 +140,7 @@
styleBlocks = {},
lastLink = links[ links.length-1 ],
now = (new Date()).getTime(),
- newIds = [];
+ newIds = [];
//throttle resize calls
if( fromResize && lastCall && now - lastCall < resizeThrottle ){
@@ -161,7 +160,7 @@
if( !styleBlocks[ thisstyle.media ] ){
styleBlocks[ thisstyle.media ] = [];
}
- newIds.push( thisstyle.id );
+ newIds.push( i );
styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] );
}
}

0 comments on commit f0d3876

Please sign in to comment.