Remove unneeded code from the underscore build of the support object.

This commit is contained in:
John-David Dalton
2013-09-28 14:02:12 -07:00
parent 0f1e69a2df
commit 4b26b46f6a
5 changed files with 176 additions and 188 deletions

View File

@@ -27,9 +27,6 @@
/** Used to ensure capturing order of template delimiters */
var reNoMatch = /($^)/;
/** Used to detect functions containing a `this` reference */
var reThis = /\bthis\b/;
/** Used to match unescaped characters in compiled string literals */
var reUnescapedString = /['\n\r\t\u2028\u2029\\]/g;
@@ -311,15 +308,6 @@
*/
support.fastBind = nativeBind && !isV8;
/**
* Detect if functions can be decompiled by `Function#toString`
* (all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps).
*
* @memberOf _.support
* @type boolean
*/
support.funcDecomp = !reNative.test(root.WinRTError) && reThis.test(function() { return this; });
/**
* Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
*