Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
release 3.8.17
Browse files Browse the repository at this point in the history
  • Loading branch information
xinglie committed Jul 23, 2020
1 parent 7e4530c commit 27b2573
Show file tree
Hide file tree
Showing 14 changed files with 169 additions and 159 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.8.17
1. 修复`checkbox``radio`切换时的`bug`
2. 修复节点缓存所属的`vframe``bug`

## 3.8.14
1. 修复附加形为`view`销毁时,未销毁内部的其它`view``bug`
2. 重新整理`d.ts`文件
Expand Down
29 changes: 15 additions & 14 deletions dist/amd/magix-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//#snippet;
//#uncheck = jsThis,jsLoop;
//#exclude = loader,allProcessor;
/*!3.8.16 Licensed MIT*/
/*!3.8.17 Licensed MIT*/
/*
author:[email protected]
loader:amd
Expand Down Expand Up @@ -2434,24 +2434,24 @@ let Body_FindVframeInfo = (current, eventType) => {
selectorVfId = tempId;//如果节点有缓存,则使用缓存
}
if (!view) { //先找最近的vframe
vfs.push(begin);
//vfs.push(begin);
while (begin != G_DOCBODY && (begin = begin.parentNode)) { //找最近的vframe,且节点上没有mx-autonomy属性
if (Vframe_Vframes[tempId = begin.id] ||
if (Vframe_Vframes[tempId = begin.id] /*||
((selectorObject = Body_RangeVframes[tempId = begin['$d']]) &&
selectorObject[begin['$e']] == 1)) {
selectorObject[begin['$e']] == 1)*/) {
selectorVfId = tempId;
break;
}
vfs.push(begin);
}
for (info of vfs) {
if (!(tempId = Body_RangeVframes[selectorVfId])) {
tempId = Body_RangeVframes[selectorVfId] = {};
}
selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
tempId[selectorObject] = 1;
info['$d'] = selectorVfId;
//vfs.push(begin);
}
// for (info of vfs) {
// if (!(tempId = Body_RangeVframes[selectorVfId])) {
// tempId = Body_RangeVframes[selectorVfId] = {};
// }
// selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
// tempId[selectorObject] = 1;
// info['$d'] = selectorVfId;
// }
}
//if (selectorVfId != G_HashKey) { //从最近的vframe向上查找带有选择器事件的view

Expand Down Expand Up @@ -2918,7 +2918,8 @@ let I_SetNode = (oldNode, newNode, oldParent, ref, vf, keys) => {
if (I_SpecialDiff(oldNode, newNode) ||
(oldNode.nodeType == 1 && oldNode.hasAttribute(G_Tag_View_Key)) ||
!(oldNode.isEqualNode && oldNode.isEqualNode(newNode))) {
if (oldNode.nodeName === newNode.nodeName) {
if (oldNode.nodeName === newNode.nodeName &&
oldNode.type === newNode.type) {
// Handle regular element node updates.
if (oldNode.nodeType === 1) {
let staticKey = G_GetAttribute(newNode, G_Tag_Key);
Expand Down
30 changes: 15 additions & 15 deletions dist/amd/magix-es3-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//#snippet;
//#uncheck = jsThis,jsLoop;
//#exclude = loader,allProcessor;
/*!3.8.16 Licensed MIT*/
/*!3.8.17 Licensed MIT*/
/*
author:[email protected]
loader:amd
Expand Down Expand Up @@ -2258,25 +2258,24 @@ define('magix', ['$'], function ($) {
selectorVfId = tempId; //如果节点有缓存,则使用缓存
}
if (!view) { //先找最近的vframe
vfs.push(begin);
//vfs.push(begin);
while (begin != G_DOCBODY && (begin = begin.parentNode)) { //找最近的vframe,且节点上没有mx-autonomy属性
if (Vframe_Vframes[tempId = begin.id] ||
if (Vframe_Vframes[tempId = begin.id] /*||
((selectorObject = Body_RangeVframes[tempId = begin['$d']]) &&
selectorObject[begin['$e']] == 1)) {
selectorObject[begin['$e']] == 1)*/) {
selectorVfId = tempId;
break;
}
vfs.push(begin);
}
for (var _i = 0, vfs_2 = vfs; _i < vfs_2.length; _i++) {
info = vfs_2[_i];
if (!(tempId = Body_RangeVframes[selectorVfId])) {
tempId = Body_RangeVframes[selectorVfId] = {};
}
selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
tempId[selectorObject] = 1;
info['$d'] = selectorVfId;
//vfs.push(begin);
}
// for (info of vfs) {
// if (!(tempId = Body_RangeVframes[selectorVfId])) {
// tempId = Body_RangeVframes[selectorVfId] = {};
// }
// selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
// tempId[selectorObject] = 1;
// info['$d'] = selectorVfId;
// }
}
//if (selectorVfId != G_HashKey) { //从最近的vframe向上查找带有选择器事件的view
begin = current.id;
Expand Down Expand Up @@ -2730,7 +2729,8 @@ define('magix', ['$'], function ($) {
if (I_SpecialDiff(oldNode, newNode) ||
(oldNode.nodeType == 1 && oldNode.hasAttribute(G_Tag_View_Key)) ||
!(oldNode.isEqualNode && oldNode.isEqualNode(newNode))) {
if (oldNode.nodeName === newNode.nodeName) {
if (oldNode.nodeName === newNode.nodeName &&
oldNode.type === newNode.type) {
// Handle regular element node updates.
if (oldNode.nodeType === 1) {
var staticKey = G_GetAttribute(newNode, G_Tag_Key);
Expand Down
29 changes: 15 additions & 14 deletions dist/cmd/magix-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//#snippet;
//#uncheck = jsThis,jsLoop;
//#exclude = loader,allProcessor;
/*!3.8.16 Licensed MIT*/
/*!3.8.17 Licensed MIT*/
/*
author:[email protected]
loader:cmd
Expand Down Expand Up @@ -2444,24 +2444,24 @@ let Body_FindVframeInfo = (current, eventType) => {
selectorVfId = tempId;//如果节点有缓存,则使用缓存
}
if (!view) { //先找最近的vframe
vfs.push(begin);
//vfs.push(begin);
while (begin != G_DOCBODY && (begin = begin.parentNode)) { //找最近的vframe,且节点上没有mx-autonomy属性
if (Vframe_Vframes[tempId = begin.id] ||
if (Vframe_Vframes[tempId = begin.id] /*||
((selectorObject = Body_RangeVframes[tempId = begin['$d']]) &&
selectorObject[begin['$e']] == 1)) {
selectorObject[begin['$e']] == 1)*/) {
selectorVfId = tempId;
break;
}
vfs.push(begin);
}
for (info of vfs) {
if (!(tempId = Body_RangeVframes[selectorVfId])) {
tempId = Body_RangeVframes[selectorVfId] = {};
}
selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
tempId[selectorObject] = 1;
info['$d'] = selectorVfId;
//vfs.push(begin);
}
// for (info of vfs) {
// if (!(tempId = Body_RangeVframes[selectorVfId])) {
// tempId = Body_RangeVframes[selectorVfId] = {};
// }
// selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
// tempId[selectorObject] = 1;
// info['$d'] = selectorVfId;
// }
}
//if (selectorVfId != G_HashKey) { //从最近的vframe向上查找带有选择器事件的view

Expand Down Expand Up @@ -2928,7 +2928,8 @@ let I_SetNode = (oldNode, newNode, oldParent, ref, vf, keys) => {
if (I_SpecialDiff(oldNode, newNode) ||
(oldNode.nodeType == 1 && oldNode.hasAttribute(G_Tag_View_Key)) ||
!(oldNode.isEqualNode && oldNode.isEqualNode(newNode))) {
if (oldNode.nodeName === newNode.nodeName) {
if (oldNode.nodeName === newNode.nodeName &&
oldNode.type === newNode.type) {
// Handle regular element node updates.
if (oldNode.nodeType === 1) {
let staticKey = G_GetAttribute(newNode, G_Tag_Key);
Expand Down
30 changes: 15 additions & 15 deletions dist/cmd/magix-es3-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//#snippet;
//#uncheck = jsThis,jsLoop;
//#exclude = loader,allProcessor;
/*!3.8.16 Licensed MIT*/
/*!3.8.17 Licensed MIT*/
/*
author:[email protected]
loader:cmd
Expand Down Expand Up @@ -2275,25 +2275,24 @@ define('magix', ['$'], function (require) {
selectorVfId = tempId; //如果节点有缓存,则使用缓存
}
if (!view) { //先找最近的vframe
vfs.push(begin);
//vfs.push(begin);
while (begin != G_DOCBODY && (begin = begin.parentNode)) { //找最近的vframe,且节点上没有mx-autonomy属性
if (Vframe_Vframes[tempId = begin.id] ||
if (Vframe_Vframes[tempId = begin.id] /*||
((selectorObject = Body_RangeVframes[tempId = begin['$d']]) &&
selectorObject[begin['$e']] == 1)) {
selectorObject[begin['$e']] == 1)*/) {
selectorVfId = tempId;
break;
}
vfs.push(begin);
}
for (var _i = 0, vfs_2 = vfs; _i < vfs_2.length; _i++) {
info = vfs_2[_i];
if (!(tempId = Body_RangeVframes[selectorVfId])) {
tempId = Body_RangeVframes[selectorVfId] = {};
}
selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
tempId[selectorObject] = 1;
info['$d'] = selectorVfId;
//vfs.push(begin);
}
// for (info of vfs) {
// if (!(tempId = Body_RangeVframes[selectorVfId])) {
// tempId = Body_RangeVframes[selectorVfId] = {};
// }
// selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
// tempId[selectorObject] = 1;
// info['$d'] = selectorVfId;
// }
}
//if (selectorVfId != G_HashKey) { //从最近的vframe向上查找带有选择器事件的view
begin = current.id;
Expand Down Expand Up @@ -2747,7 +2746,8 @@ define('magix', ['$'], function (require) {
if (I_SpecialDiff(oldNode, newNode) ||
(oldNode.nodeType == 1 && oldNode.hasAttribute(G_Tag_View_Key)) ||
!(oldNode.isEqualNode && oldNode.isEqualNode(newNode))) {
if (oldNode.nodeName === newNode.nodeName) {
if (oldNode.nodeName === newNode.nodeName &&
oldNode.type === newNode.type) {
// Handle regular element node updates.
if (oldNode.nodeType === 1) {
var staticKey = G_GetAttribute(newNode, G_Tag_Key);
Expand Down
29 changes: 15 additions & 14 deletions dist/kissy/magix-debug.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//#snippet;
//#uncheck = jsThis,jsLoop;
//#exclude = loader,allProcessor;
/*!3.8.16 Licensed MIT*/
/*!3.8.17 Licensed MIT*/
/*
author:[email protected]
loader:kissy
Expand Down Expand Up @@ -2401,24 +2401,24 @@ let Body_FindVframeInfo = (current, eventType) => {
selectorVfId = tempId;//如果节点有缓存,则使用缓存
}
if (!view) { //先找最近的vframe
vfs.push(begin);
//vfs.push(begin);
while (begin != G_DOCBODY && (begin = begin.parentNode)) { //找最近的vframe,且节点上没有mx-autonomy属性
if (Vframe_Vframes[tempId = begin.id] ||
if (Vframe_Vframes[tempId = begin.id] /*||
((selectorObject = Body_RangeVframes[tempId = begin['$d']]) &&
selectorObject[begin['$e']] == 1)) {
selectorObject[begin['$e']] == 1)*/) {
selectorVfId = tempId;
break;
}
vfs.push(begin);
}
for (info of vfs) {
if (!(tempId = Body_RangeVframes[selectorVfId])) {
tempId = Body_RangeVframes[selectorVfId] = {};
}
selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
tempId[selectorObject] = 1;
info['$d'] = selectorVfId;
//vfs.push(begin);
}
// for (info of vfs) {
// if (!(tempId = Body_RangeVframes[selectorVfId])) {
// tempId = Body_RangeVframes[selectorVfId] = {};
// }
// selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
// tempId[selectorObject] = 1;
// info['$d'] = selectorVfId;
// }
}
//if (selectorVfId != G_HashKey) { //从最近的vframe向上查找带有选择器事件的view

Expand Down Expand Up @@ -2886,7 +2886,8 @@ let I_SetNode = (oldNode, newNode, oldParent, ref, vf, keys) => {
if (I_SpecialDiff(oldNode, newNode) ||
(oldNode.nodeType == 1 && oldNode.hasAttribute(G_Tag_View_Key)) ||
!(oldNode.isEqualNode && oldNode.isEqualNode(newNode))) {
if (oldNode.nodeName === newNode.nodeName) {
if (oldNode.nodeName === newNode.nodeName &&
oldNode.type === newNode.type) {
// Handle regular element node updates.
if (oldNode.nodeType === 1) {
let staticKey = G_GetAttribute(newNode, G_Tag_Key);
Expand Down
30 changes: 15 additions & 15 deletions dist/kissy/magix-es3-debug-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//#snippet;
//#uncheck = jsThis,jsLoop;
//#exclude = loader,allProcessor;
/*!3.8.16 Licensed MIT*/
/*!3.8.17 Licensed MIT*/
/*
author:[email protected]
loader:kissy
Expand Down Expand Up @@ -2231,25 +2231,24 @@ KISSY.add('magix', function (S, SE, DOM, SNode) {
selectorVfId = tempId; //如果节点有缓存,则使用缓存
}
if (!view) { //先找最近的vframe
vfs.push(begin);
//vfs.push(begin);
while (begin != G_DOCBODY && (begin = begin.parentNode)) { //找最近的vframe,且节点上没有mx-autonomy属性
if (Vframe_Vframes[tempId = begin.id] ||
if (Vframe_Vframes[tempId = begin.id] /*||
((selectorObject = Body_RangeVframes[tempId = begin['$d']]) &&
selectorObject[begin['$e']] == 1)) {
selectorObject[begin['$e']] == 1)*/) {
selectorVfId = tempId;
break;
}
vfs.push(begin);
}
for (var _i = 0, vfs_2 = vfs; _i < vfs_2.length; _i++) {
info = vfs_2[_i];
if (!(tempId = Body_RangeVframes[selectorVfId])) {
tempId = Body_RangeVframes[selectorVfId] = {};
}
selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
tempId[selectorObject] = 1;
info['$d'] = selectorVfId;
//vfs.push(begin);
}
// for (info of vfs) {
// if (!(tempId = Body_RangeVframes[selectorVfId])) {
// tempId = Body_RangeVframes[selectorVfId] = {};
// }
// selectorObject = info['$e'] || (info['$e'] = ++Body_Guid);
// tempId[selectorObject] = 1;
// info['$d'] = selectorVfId;
// }
}
//if (selectorVfId != G_HashKey) { //从最近的vframe向上查找带有选择器事件的view
begin = current.id;
Expand Down Expand Up @@ -2703,7 +2702,8 @@ KISSY.add('magix', function (S, SE, DOM, SNode) {
if (I_SpecialDiff(oldNode, newNode) ||
(oldNode.nodeType == 1 && oldNode.hasAttribute(G_Tag_View_Key)) ||
!(oldNode.isEqualNode && oldNode.isEqualNode(newNode))) {
if (oldNode.nodeName === newNode.nodeName) {
if (oldNode.nodeName === newNode.nodeName &&
oldNode.type === newNode.type) {
// Handle regular element node updates.
if (oldNode.nodeType === 1) {
var staticKey = G_GetAttribute(newNode, G_Tag_Key);
Expand Down
Loading

0 comments on commit 27b2573

Please sign in to comment.