[fix] attempt to avoid need for 'Array.from' polyfill

Fix #409
This commit is contained in:
Nicolas Gallagher
2017-04-20 18:00:12 -07:00
parent d5a9f3e779
commit 6e71e1e058
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
# Getting started
It is recommended that your application provide a `Promise` and `Array.from`
polyfill.
## Webpack and Babel
[Webpack](webpack.js.org) is a popular build tool for web apps. Below is an

View File

@@ -69,7 +69,7 @@ const NativeMethodsMixin = {
setNativeProps(nativeProps: Object) {
// DOM state
const node = findNodeHandle(this);
const classList = [...node.classList];
const classList = Array.prototype.slice.call(node.classList);
const domProps = createDOMProps(nativeProps, style =>
StyleRegistry.resolveStateful(style, classList)