Skip to content

Commit 1aa5f5f

Browse files
committedFeb 27, 2013
Merge pull request scottjehl#184 from eddiemonge/patch-1
use strict errors?
2 parents 72cd8e1 + 73c0726 commit 1aa5f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎respond.src.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ window.matchMedia = window.matchMedia || (function( doc, undefined ) {
111111

112112
// by wrapping recursive function call in setTimeout
113113
// we prevent "Stack overflow" error in IE7
114-
setTimeout(function(){ makeRequests(); },0);
114+
win.setTimeout(function(){ makeRequests(); },0);
115115
} );
116116
}
117117
},
@@ -223,8 +223,8 @@ window.matchMedia = window.matchMedia || (function( doc, undefined ) {
223223

224224
//throttle resize calls
225225
if( fromResize && lastCall && now - lastCall < resizeThrottle ){
226-
clearTimeout( resizeDefer );
227-
resizeDefer = setTimeout( applyMedia, resizeThrottle );
226+
win.clearTimeout( resizeDefer );
227+
resizeDefer = win.setTimeout( applyMedia, resizeThrottle );
228228
return;
229229
}
230230
else {

0 commit comments

Comments
 (0)
Please sign in to comment.