From f481ced284063502c36236b769f16cd5ec37abbc Mon Sep 17 00:00:00 2001 From: hkczyx <779543729@qq.com> Date: Fri, 14 Jul 2017 00:15:23 +0800 Subject: [PATCH 1/3] Update .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d78e3cc7d..09bcd20eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ !/karma/repeat.js -/nbproject/private/ \ No newline at end of file +/nbproject/private/ +/node_modules From 391161e3e21758998285534cf98c7ea76ae69e1f Mon Sep 17 00:00:00 2001 From: hkczyx <779543729@qq.com> Date: Fri, 14 Jul 2017 00:17:13 +0800 Subject: [PATCH 2/3] Update modern.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化参数 --- src/vmodel/modern.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vmodel/modern.js b/src/vmodel/modern.js index a07a9ec4b..0696add9d 100644 --- a/src/vmodel/modern.js +++ b/src/vmodel/modern.js @@ -44,11 +44,11 @@ function $watch(expr, callback, deep) { } } } -export function watchFactory(core) { +export function watchFactory() { return $watch } -export function fireFactory(core) { +export function fireFactory() { return $fire } @@ -80,4 +80,4 @@ platform.fireFactory = fireFactory platform.watchFactory = watchFactory platform.afterCreate = afterCreate platform.hideProperty = hideProperty -platform.createViewModel = Object.defineProperties \ No newline at end of file +platform.createViewModel = Object.defineProperties From f9021540c6f0125fdead909c39b9659ac41af2b2 Mon Sep 17 00:00:00 2001 From: hkczyx <779543729@qq.com> Date: Fri, 14 Jul 2017 00:17:48 +0800 Subject: [PATCH 3/3] Update share.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化参数 --- src/vmodel/share.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vmodel/share.js b/src/vmodel/share.js index 66d2761cd..1f25e46ba 100644 --- a/src/vmodel/share.js +++ b/src/vmodel/share.js @@ -52,8 +52,8 @@ export function IProxy(definition, dd) { } } if (dd === void 0) { - this.$watch = platform.watchFactory(this.$events) - this.$fire = platform.fireFactory(this.$events) + this.$watch = platform.watchFactory() + this.$fire = platform.fireFactory() } else { delete this.$watch delete this.$fire @@ -228,4 +228,4 @@ var modelAccessor = { } platform.toJson = toJson -platform.modelAccessor = modelAccessor \ No newline at end of file +platform.modelAccessor = modelAccessor