Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

use strict errors? #184

Merged
merged 1 commit into from

2 participants

@eddiemonge

setTimeout and clearTimeout are methods of window

@eddiemonge eddiemonge use strict errors?
setTimeout and clearTimeout are methods of window
73c0726
@scottjehl scottjehl merged commit 1aa5f5f into from
@scottjehl
Owner

thanks! love the help on cleaning this up :)

@eddiemonge eddiemonge deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 27, 2013
  1. @eddiemonge

    use strict errors?

    eddiemonge authored
    setTimeout and clearTimeout are methods of window
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 respond.src.js
View
6 respond.src.js
@@ -111,7 +111,7 @@ window.matchMedia = window.matchMedia || (function( doc, undefined ) {
// by wrapping recursive function call in setTimeout
// we prevent "Stack overflow" error in IE7
- setTimeout(function(){ makeRequests(); },0);
+ win.setTimeout(function(){ makeRequests(); },0);
} );
}
},
@@ -223,8 +223,8 @@ window.matchMedia = window.matchMedia || (function( doc, undefined ) {
//throttle resize calls
if( fromResize && lastCall && now - lastCall < resizeThrottle ){
- clearTimeout( resizeDefer );
- resizeDefer = setTimeout( applyMedia, resizeThrottle );
+ win.clearTimeout( resizeDefer );
+ resizeDefer = win.setTimeout( applyMedia, resizeThrottle );
return;
}
else {
Something went wrong with that request. Please try again.