From 076ebf44f524ae0158c66b8c1c5be844f7a0e087 Mon Sep 17 00:00:00 2001 From: Peach Date: Wed, 28 Mar 2018 11:01:36 +0800 Subject: [PATCH] fix(example): forEach error in IE --- examples/discrete-components/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/discrete-components/app.js b/examples/discrete-components/app.js index 2b42ac368..fc1c424b8 100644 --- a/examples/discrete-components/app.js +++ b/examples/discrete-components/app.js @@ -30,7 +30,7 @@ const BaseVue = Vue.extend({ router }) // and bound on multiple *independent* nodes (eg. one Vue instance // per node); but the router should act as a singleton and keep all // instances in sync. -document.querySelectorAll('.app').forEach((node) => { +Array.prototype.forEach.call(document.querySelectorAll('.app'), (node) => { new BaseVue({ el: node })