Permalink
Browse files

Make it lint free

  • Loading branch information...
1 parent 26584e0 commit 08f1d632186b8b3f3be6cbc67bd4b4683d58e4ea @davglass davglass committed Jan 4, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/timers/js/timers.js
View
@@ -5,7 +5,7 @@
* @author Steven Olmsted
*/
-var global = Y.config.global,
+var YGLOBAL = Y.config.global,
/**
* Y.soon accepts a callback function. The callback function will be called
@@ -64,15 +64,15 @@ var global = Y.config.global,
*/
// Check for a native or already polyfilled implementation of setImmediate.
-if ('setImmediate' in global) {
+if ('setImmediate' in YGLOBAL) {
soon._asynchronizer = function (callbackFunction) {
setImmediate(callbackFunction);
};
soon._impl = 'setImmediate';
}
// Check for process and process.nextTick
-else if (('process' in global) && ('nextTick' in process)) {
+else if (('process' in YGLOBAL) && ('nextTick' in process)) {
soon._asynchronizer = process.nextTick;
soon._impl = 'nextTick';
}
@@ -86,4 +86,4 @@ else {
soon._impl = 'setTimeout';
}
-Y.soon = soon;
+Y.soon = soon;

0 comments on commit 08f1d63

Please sign in to comment.