actum / gulp-dev-stack

Actum dev stack based on gulp
MIT License
11 stars 7 forks source link

Problem with factory function if there is no containers #41

Closed janneuman closed 8 years ago

janneuman commented 8 years ago

In IE11 I got an error "Object cannot use property or method from" (Array.from) if there is no containers in the DOM. I found some explanation on Stackoverflow: http://stackoverflow.com/a/32000509

Solution can be use if condition: if (containers.length) { or convert array like object to real array return [].slice.apply(containers).map(container => fn(container, ...args));

vbulant commented 8 years ago

Running npm i babel-polyfill --save and adding import 'babel-polyfill'; to the top of your entry js file should work.

You propably have an older version without the polyfill, it is already included in the latest version.

Close the issue if it works please.