Skip to content

Ember.isArray return true for FileList object #12688

@joelcox

Description

@joelcox

Passing a FileList object to Ember.isArray returns true, even though it does not behave like an Ember Array/Enumerable. I'm not sure if this is within the scope of Ember.

JSBin: http://emberjs.jsbin.com/ricokobotu/8/edit?js,console,output

Interesting bit from the File spec:

The FileList interface should be considered "at risk" since the general trend on the Web Platform is to replace such interfaces with the Array platform object in ECMAScript [ECMA-262]. In particular, this means syntax of the sort filelist.item(0) is at risk; most other programmatic use of FileList is unlikely to be affected by the eventual migration to an Array type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions