Skip to content

Commit 694a7af

Browse files
PeachScriptposva
authored andcommitted
Fix forEach error in IE browsers (#2130)
1 parent 9880cbd commit 694a7af

File tree

1 file changed

+1
-1
lines changed
  • examples/discrete-components

1 file changed

+1
-1
lines changed

Diff for: examples/discrete-components/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const BaseVue = Vue.extend({ router })
3030
// and bound on multiple *independent* nodes (eg. one Vue instance
3131
// per node); but the router should act as a singleton and keep all
3232
// instances in sync.
33-
document.querySelectorAll('.app').forEach((node) => {
33+
Array.prototype.forEach.call(document.querySelectorAll('.app'), (node) => {
3434
new BaseVue({
3535
el: node
3636
})

0 commit comments

Comments
 (0)