documentcloud/underscore — Issue #472: Native Array.isArray works incorrectly in FF 10
Author: emilisto
Created: 2012-02-14 09:02:53+00:00
State: open

I'm working on a project where we call ``XMLHttpRequest`` in an iframe to get JSON data to populate Backbone models without violating the cross origin policy. The problem is when we later try to use ``_.isArray`` on this JSON data, but in Firefox 10 this triggers a bug with native the ``Array.isArray`` wrongly returning false.

See this gist for a clear demonstration: https://gist.github.com/1721221

I assume this is a not to uncommon approach, so unless a workaround is introduced in underscore, many users will be affected by this until the next Firefox update is out. It has been addressed and resolved in the nightly FF build.

https://bugzilla.mozilla.org/show_bug.cgi?id=723388