aboutsummaryrefslogtreecommitdiff
path: root/node_modules/vue/src/platforms/weex/runtime/patch.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/vue/src/platforms/weex/runtime/patch.js')
-rw-r--r--node_modules/vue/src/platforms/weex/runtime/patch.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/node_modules/vue/src/platforms/weex/runtime/patch.js b/node_modules/vue/src/platforms/weex/runtime/patch.js
new file mode 100644
index 00000000..5e70d143
--- /dev/null
+++ b/node_modules/vue/src/platforms/weex/runtime/patch.js
@@ -0,0 +1,16 @@
+/* @flow */
+
+import * as nodeOps from 'weex/runtime/node-ops'
+import { createPatchFunction } from 'core/vdom/patch'
+import baseModules from 'core/vdom/modules/index'
+import platformModules from 'weex/runtime/modules/index'
+
+// the directive module should be applied last, after all
+// built-in modules have been applied.
+const modules = platformModules.concat(baseModules)
+
+export const patch: Function = createPatchFunction({
+ nodeOps,
+ modules,
+ LONG_LIST_THRESHOLD: 10
+})