indexOf is not a safe operation on arrays.

This commit is contained in:
Ross Boucher committed 2010-05-12 16:51:28 -07:00
1 parent ee2f361425
commit 13a5c7f215
1 file changed
+2 -2
+2 -2
View File
@@ -271,7 +271,7 @@ var CPRunLoopLastNativeRunLoop = 0;
// FIXME: Hack for not doing this in CommonJS
if (CFBundle.environments().indexOf("Browser") !== -1)
if ([CFBundle.environments() indexOfObject:("Browser")] !== CPNotFound)
{
if (!_runLoopInsuranceTimer)
_runLoopInsuranceTimer = window.setNativeTimeout(function()
@@ -293,7 +293,7 @@ var CPRunLoopLastNativeRunLoop = 0;
_runLoopLock = YES;
// FIXME: Hack for not doing this in CommonJS
if (CFBundle.environments().indexOf("Browser") !== -1)
if ([CFBundle.environments() indexOfObject:("Browser")] !== CPNotFound)
{
if (_runLoopInsuranceTimer)
{