Remove isJSC in mobile and underscore builds. [closes #196]

Former-commit-id: 77ddbbcfcf17b5074a7fba137dc426f20a6ab5dd
This commit is contained in:
John-David Dalton
2013-02-26 21:08:35 -08:00
parent b88b292d5d
commit eb8953e784
6 changed files with 44 additions and 41 deletions

View File

@@ -96,7 +96,7 @@
/*--------------------------------------------------------------------------*/
/** Used for `Array`, `Math`, and `Object` method references */
/** Used for `Array` and `Object` method references */
var arrayRef = Array(),
objectRef = Object();
@@ -132,7 +132,6 @@
/** Detect various environments */
var isIeOpera = !!window.attachEvent,
isJSC = !/\n{2,}/.test(Function()),
isV8 = nativeBind && !/\n|true/.test(nativeBind + isIeOpera);
/* Detect if `Function#bind` exists and is inferred to be fast (all but V8) */
@@ -3485,10 +3484,6 @@
var args = slice(arguments, 1);
return setTimeout(function() { func.apply(undefined, args); }, 1);
}
// use `setImmediate` if it's available in Node.js
if (isV8 && freeModule && typeof setImmediate == 'function') {
defer = bind(setImmediate, window);
}
/**
* Creates a function that memoizes the result of `func`. If `resolver` is