Use Boolean to fake out the isNative check and allow environments to test the native String#contains fork of _.contains

This commit is contained in:
John-David Dalton
2013-12-20 02:38:18 -08:00
parent 3c72ea40b4
commit d34cf636d8
2 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@
Object.keys = function() {};
String.prototype._contains = String.prototype.contains;
String.prototype.contains = function() {};
String.prototype.contains = String.prototype._contains ? function() {} : Boolean;
window.WinRTError = Error;