Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
musicode committed Mar 20, 2018
1 parent 5897595 commit 8f0605a
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 21 deletions.
18 changes: 11 additions & 7 deletions dist/yox-legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4485,12 +4485,16 @@ var Computed = function () {
};

each$1(observer.computed, function (computed) {
if (computed.hasDep(keypath)) {
return diff();
} else {
for (var i = 0, len = computed.deps.length; i < len; i++) {
if (startsWith$1(computed.deps[i], keypath)) {
return diff();
if (computed.keypath !== keypath) {
var deps = computed.deps;

if (has(deps, keypath)) {
return diff();
} else {
for (var i = 0, len = deps.length; i < len; i++) {
if (startsWith$1(deps[i], keypath)) {
return diff();
}
}
}
}
Expand Down Expand Up @@ -6677,7 +6681,7 @@ var Yox = function () {
return Yox;
}();

Yox.version = '0.56.2';
Yox.version = '0.56.3';

/**
* 工具,便于扩展、插件使用
Expand Down
2 changes: 1 addition & 1 deletion dist/yox-legacy.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/yox-legacy.min.js

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions dist/yox.js
Original file line number Diff line number Diff line change
Expand Up @@ -4429,12 +4429,16 @@ var Computed = function () {
};

each$1(observer.computed, function (computed) {
if (computed.hasDep(keypath)) {
return diff();
} else {
for (var i = 0, len = computed.deps.length; i < len; i++) {
if (startsWith$1(computed.deps[i], keypath)) {
return diff();
if (computed.keypath !== keypath) {
var deps = computed.deps;

if (has(deps, keypath)) {
return diff();
} else {
for (var i = 0, len = deps.length; i < len; i++) {
if (startsWith$1(deps[i], keypath)) {
return diff();
}
}
}
}
Expand Down Expand Up @@ -6515,7 +6519,7 @@ var Yox = function () {
return Yox;
}();

Yox.version = '0.56.2';
Yox.version = '0.56.3';

/**
* 工具,便于扩展、插件使用
Expand Down
2 changes: 1 addition & 1 deletion dist/yox.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/yox.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yox",
"version": "0.56.2",
"version": "0.56.3",
"description": "A lightweight mvvm framework",
"main": "dist/yox.js",
"directories": {
Expand All @@ -18,7 +18,7 @@
"yox-common": "^0.14.7",
"yox-config": "0.0.4",
"yox-expression-compiler": "^0.14.3",
"yox-observer": "^0.16.4",
"yox-observer": "^0.16.5",
"yox-snabbdom": "^0.15.5",
"yox-template-compiler": "^0.23.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Yox.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ export default class Yox {
*
* @type {string}
*/
Yox.version = '0.56.2'
Yox.version = '0.56.3'

/**
* 工具,便于扩展、插件使用
Expand Down

0 comments on commit 8f0605a

Please sign in to comment.