Remove noArraySliceOnStrings from the mobile build.

Former-commit-id: 943f907672f211be4f3d1c2e8fe8d5769a0a569e
This commit is contained in:
John-David Dalton
2012-07-11 12:42:38 -04:00
parent 0976a3b721
commit 971a26c123
3 changed files with 12 additions and 7 deletions

View File

@@ -128,6 +128,9 @@
*/
var hasDontEnumBug = !propertyIsEnumerable.call({ 'valueOf': 0 }, 'valueOf');
/** Detect if `Array#slice` cannot be used to convert strings to arrays (e.g. Opera < 10.52) */
var noArraySliceOnStrings = slice.call('x')[0] != 'x';
/**
* Detect lack of support for accessing string characters by index:
* IE < 8 can't access characters by index and IE 8 can only access
@@ -135,9 +138,6 @@
*/
var noCharByIndex = ('x'[0] + Object('x')[0]) != 'xx';
/** Detect if `Array#slice` cannot be used to convert strings to arrays (e.g. Opera < 10.52) */
var noArraySliceOnStrings = slice.call('x')[0] != 'x';
/* Detect if `Function#bind` exists and is inferred to be fast (i.e. all but V8) */
var isBindFast = nativeBind && /\n|Opera/.test(nativeBind + toString.call(window.opera));