marko 5.38.27 → 5.38.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,6 @@ var CONTEXT_KEY = "__subtree_context__";
|
|
|
24
24
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
25
25
|
var slice = Array.prototype.slice;
|
|
26
26
|
|
|
27
|
-
var COMPONENT_SUBSCRIBE_TO_OPTIONS;
|
|
28
27
|
var NON_COMPONENT_SUBSCRIBE_TO_OPTIONS = {
|
|
29
28
|
addDestroyListener: false
|
|
30
29
|
};
|
|
@@ -208,7 +207,7 @@ Component.prototype = componentProto = {
|
|
|
208
207
|
this.ak_ = new SubscriptionTracker());
|
|
209
208
|
|
|
210
209
|
var subscribeToOptions = target.y_ ?
|
|
211
|
-
|
|
210
|
+
undefined :
|
|
212
211
|
NON_COMPONENT_SUBSCRIBE_TO_OPTIONS;
|
|
213
212
|
|
|
214
213
|
return subscriptions.subscribeTo(target, subscribeToOptions);
|
|
@@ -560,7 +560,7 @@ function morphdom(fromNode, toNode, host, componentsContext) {
|
|
|
560
560
|
curFromNodeChild = fromNextSibling;
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
563
|
-
} else if (
|
|
563
|
+
} else if (curVFromNodeChild.ca_) {
|
|
564
564
|
// We have a keyed element here but our target VDOM node
|
|
565
565
|
// is not keyed so this not doesn't belong
|
|
566
566
|
isCompatible = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marko",
|
|
3
|
-
"version": "5.38.
|
|
3
|
+
"version": "5.38.28",
|
|
4
4
|
"description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"front-end",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"build": "babel ./src --out-dir ./dist --extensions .js --copy-files --config-file ../../babel.config.js --env-name=production"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@marko/compiler": "^5.39.
|
|
73
|
-
"@marko/runtime-tags": "^6.0.
|
|
72
|
+
"@marko/compiler": "^5.39.59",
|
|
73
|
+
"@marko/runtime-tags": "^6.0.154",
|
|
74
74
|
"app-module-path": "^2.2.0",
|
|
75
75
|
"argly": "^1.2.0",
|
|
76
76
|
"browser-refresh-client": "1.1.4",
|
|
@@ -24,7 +24,6 @@ var CONTEXT_KEY = "__subtree_context__";
|
|
|
24
24
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
25
25
|
var slice = Array.prototype.slice;
|
|
26
26
|
|
|
27
|
-
var COMPONENT_SUBSCRIBE_TO_OPTIONS;
|
|
28
27
|
var NON_COMPONENT_SUBSCRIBE_TO_OPTIONS = {
|
|
29
28
|
addDestroyListener: false,
|
|
30
29
|
};
|
|
@@ -208,7 +207,7 @@ Component.prototype = componentProto = {
|
|
|
208
207
|
(this.___subscriptions = new SubscriptionTracker());
|
|
209
208
|
|
|
210
209
|
var subscribeToOptions = target.___isComponent
|
|
211
|
-
?
|
|
210
|
+
? undefined
|
|
212
211
|
: NON_COMPONENT_SUBSCRIBE_TO_OPTIONS;
|
|
213
212
|
|
|
214
213
|
return subscriptions.subscribeTo(target, subscribeToOptions);
|
|
@@ -560,7 +560,7 @@ function morphdom(fromNode, toNode, host, componentsContext) {
|
|
|
560
560
|
curFromNodeChild = fromNextSibling;
|
|
561
561
|
continue;
|
|
562
562
|
}
|
|
563
|
-
} else if (
|
|
563
|
+
} else if (curVFromNodeChild.___key) {
|
|
564
564
|
// We have a keyed element here but our target VDOM node
|
|
565
565
|
// is not keyed so this not doesn't belong
|
|
566
566
|
isCompatible = false;
|