marko 5.35.21 → 5.35.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/core-tags/core/await/reorderer-renderer.js +29 -19
- package/dist/node_modules/@internal/components-beginComponent/index-browser.js +4 -4
- package/dist/node_modules/@internal/components-beginComponent/index.js +11 -11
- package/dist/node_modules/@internal/components-define-widget-legacy/index-browser.js +45 -45
- package/dist/node_modules/@internal/components-define-widget-legacy/index.js +3 -3
- package/dist/node_modules/@internal/components-endComponent/index.js +3 -3
- package/dist/node_modules/@internal/components-entry/index-browser.js +2 -2
- package/dist/node_modules/@internal/components-entry/index.js +17 -17
- package/dist/node_modules/@internal/components-entry-legacy/index-browser.js +6 -6
- package/dist/node_modules/@internal/components-registry/index-browser.js +46 -46
- package/dist/node_modules/@internal/components-registry/index.js +2 -2
- package/dist/node_modules/@internal/components-util/index-browser.js +20 -20
- package/dist/node_modules/@internal/components-util/index.js +9 -9
- package/dist/node_modules/@internal/create-readable/index-browser.js +1 -1
- package/dist/node_modules/@internal/create-readable/index.js +9 -9
- package/dist/node_modules/@internal/preserve-tag/index-browser.js +7 -7
- package/dist/node_modules/@internal/preserve-tag/index.js +5 -5
- package/dist/node_modules/@internal/set-immediate/index-browser.js +1 -1
- package/dist/node_modules/@internal/set-immediate/index-worker.js +2 -2
- package/dist/node_modules/@internal/set-immediate/index.js +2 -2
- package/dist/runtime/RenderResult.js +8 -8
- package/dist/runtime/components/Component.js +145 -145
- package/dist/runtime/components/ComponentDef.js +29 -29
- package/dist/runtime/components/ComponentsContext.js +15 -15
- package/dist/runtime/components/GlobalComponentsContext.js +4 -4
- package/dist/runtime/components/KeySequence.js +3 -3
- package/dist/runtime/components/ServerComponent.js +13 -13
- package/dist/runtime/components/State.js +26 -26
- package/dist/runtime/components/attach-detach.js +8 -8
- package/dist/runtime/components/defineComponent.js +5 -5
- package/dist/runtime/components/dom-data.js +5 -5
- package/dist/runtime/components/event-delegation.js +10 -10
- package/dist/runtime/components/legacy/defineComponent-legacy.js +1 -1
- package/dist/runtime/components/legacy/defineRenderer-legacy.js +16 -16
- package/dist/runtime/components/legacy/dependencies/index.js +7 -7
- package/dist/runtime/components/legacy/renderer-legacy.js +43 -43
- package/dist/runtime/components/renderer.js +35 -35
- package/dist/runtime/components/update-manager.js +4 -4
- package/dist/runtime/createOut.js +1 -1
- package/dist/runtime/dom-insert.js +5 -5
- package/dist/runtime/helpers/_change-case.js +2 -2
- package/dist/runtime/helpers/dynamic-tag.js +18 -18
- package/dist/runtime/helpers/render-tag.js +1 -1
- package/dist/runtime/helpers/serialize-noop.js +2 -2
- package/dist/runtime/helpers/style-value.js +1 -1
- package/dist/runtime/helpers/tags-compat/runtime-dom.js +24 -24
- package/dist/runtime/helpers/tags-compat/runtime-html.js +8 -8
- package/dist/runtime/html/AsyncStream.js +26 -26
- package/dist/runtime/html/BufferedWriter.js +2 -2
- package/dist/runtime/html/helpers/data-marko.js +4 -4
- package/dist/runtime/html/helpers/escape-xml.js +1 -1
- package/dist/runtime/html/index.js +2 -2
- package/dist/runtime/renderable.js +5 -5
- package/dist/runtime/vdom/AsyncVDOMBuilder.js +42 -42
- package/dist/runtime/vdom/VComment.js +1 -1
- package/dist/runtime/vdom/VComponent.js +2 -2
- package/dist/runtime/vdom/VDocumentFragment.js +2 -2
- package/dist/runtime/vdom/VElement.js +13 -13
- package/dist/runtime/vdom/VFragment.js +5 -5
- package/dist/runtime/vdom/VNode.js +4 -4
- package/dist/runtime/vdom/VText.js +1 -1
- package/dist/runtime/vdom/hot-reload.js +18 -18
- package/dist/runtime/vdom/index.js +2 -2
- package/dist/runtime/vdom/morphdom/fragment.js +2 -2
- package/dist/runtime/vdom/morphdom/helpers.js +4 -4
- package/dist/runtime/vdom/morphdom/index.js +46 -46
- package/helpers/README.md +3 -0
- package/helpers/empty.js +4 -0
- package/helpers/notEmpty.js +11 -0
- package/package.json +2 -1
- package/src/core-tags/core/await/reorderer-renderer.js +73 -63
@@ -28,7 +28,7 @@ function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
|
|
28
28
|
var state;
|
29
29
|
|
30
30
|
if (parentOut) {
|
31
|
-
state = parentOut.
|
31
|
+
state = parentOut.A_;
|
32
32
|
} else {
|
33
33
|
state = new State(parentNode);
|
34
34
|
}
|
@@ -39,38 +39,38 @@ function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
|
|
39
39
|
this.bM_ = parentOut;
|
40
40
|
|
41
41
|
this.data = {};
|
42
|
-
this.
|
43
|
-
this.
|
42
|
+
this.A_ = state;
|
43
|
+
this.ac_ = parentNode;
|
44
44
|
this.global = globalData || {};
|
45
45
|
this.bN_ = [parentNode];
|
46
46
|
this.bO_ = false;
|
47
47
|
this.bP_ = undefined;
|
48
48
|
this.b_ = null;
|
49
49
|
|
50
|
-
this.a__ = null;
|
51
50
|
this.aa_ = null;
|
52
|
-
this.
|
51
|
+
this.ab_ = null;
|
52
|
+
this.bd_ = null;
|
53
53
|
}
|
54
54
|
|
55
55
|
var proto = AsyncVDOMBuilder.prototype = {
|
56
|
-
|
57
|
-
|
56
|
+
bu_: true,
|
57
|
+
C_: typeof document === "object" && document,
|
58
58
|
|
59
59
|
bc: function (component, key, ownerComponent) {
|
60
60
|
var vComponent = new VComponent(component, key, ownerComponent);
|
61
61
|
return this.bQ_(vComponent, 0, true);
|
62
62
|
},
|
63
63
|
|
64
|
-
|
64
|
+
be_: function (component, key, ownerComponent) {
|
65
65
|
var vComponent = new VComponent(component, key, ownerComponent, true);
|
66
66
|
this.bQ_(vComponent, 0);
|
67
67
|
},
|
68
68
|
|
69
69
|
bQ_: function (child, childCount, pushToStack) {
|
70
|
-
this.
|
70
|
+
this.ac_.bR_(child);
|
71
71
|
if (pushToStack === true) {
|
72
72
|
this.bN_.push(child);
|
73
|
-
this.
|
73
|
+
this.ac_ = child;
|
74
74
|
}
|
75
75
|
return childCount === 0 ? this : child;
|
76
76
|
},
|
@@ -88,12 +88,12 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
88
88
|
return this.bQ_(element, childCount);
|
89
89
|
},
|
90
90
|
|
91
|
-
|
91
|
+
bn_: function (tagName, attrs, key, componentDef, props) {
|
92
92
|
return this.element(
|
93
93
|
tagName,
|
94
94
|
attrsHelper(attrs),
|
95
95
|
key,
|
96
|
-
componentDef.
|
96
|
+
componentDef.t_,
|
97
97
|
0,
|
98
98
|
0,
|
99
99
|
props
|
@@ -105,13 +105,13 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
105
105
|
// and a node can only have one parent node.
|
106
106
|
var clone = node.bS_();
|
107
107
|
this.node(clone);
|
108
|
-
clone.
|
108
|
+
clone._N_ = component;
|
109
109
|
|
110
110
|
return this;
|
111
111
|
},
|
112
112
|
|
113
113
|
node: function (node) {
|
114
|
-
this.
|
114
|
+
this.ac_.bR_(node);
|
115
115
|
return this;
|
116
116
|
},
|
117
117
|
|
@@ -130,7 +130,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
130
130
|
text = text.toString();
|
131
131
|
}
|
132
132
|
|
133
|
-
this.
|
133
|
+
this.ac_.bR_(new VText(text, ownerComponent));
|
134
134
|
return this;
|
135
135
|
},
|
136
136
|
|
@@ -169,12 +169,12 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
169
169
|
return this;
|
170
170
|
},
|
171
171
|
|
172
|
-
|
172
|
+
bl_: function (tagName, attrs, key, componentDef, props) {
|
173
173
|
return this.beginElement(
|
174
174
|
tagName,
|
175
175
|
attrsHelper(attrs),
|
176
176
|
key,
|
177
|
-
componentDef.
|
177
|
+
componentDef.t_,
|
178
178
|
0,
|
179
179
|
0,
|
180
180
|
props
|
@@ -194,11 +194,11 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
194
194
|
endElement: function () {
|
195
195
|
var stack = this.bN_;
|
196
196
|
stack.pop();
|
197
|
-
this.
|
197
|
+
this.ac_ = stack[stack.length - 1];
|
198
198
|
},
|
199
199
|
|
200
200
|
end: function () {
|
201
|
-
this.
|
201
|
+
this.ac_ = undefined;
|
202
202
|
|
203
203
|
var remaining = --this.bJ_;
|
204
204
|
var parentOut = this.bM_;
|
@@ -232,9 +232,9 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
232
232
|
},
|
233
233
|
|
234
234
|
bU_: function () {
|
235
|
-
var state = this.
|
235
|
+
var state = this.A_;
|
236
236
|
state.bI_ = true;
|
237
|
-
state.bG_.emit(EVENT_FINISH, this.
|
237
|
+
state.bG_.emit(EVENT_FINISH, this.o_());
|
238
238
|
},
|
239
239
|
|
240
240
|
bV_: function () {
|
@@ -278,7 +278,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
278
278
|
);
|
279
279
|
}
|
280
280
|
|
281
|
-
var state = this.
|
281
|
+
var state = this.A_;
|
282
282
|
|
283
283
|
if (options) {
|
284
284
|
if (options.last) {
|
@@ -288,7 +288,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
288
288
|
|
289
289
|
this.bJ_++;
|
290
290
|
|
291
|
-
var documentFragment = this.
|
291
|
+
var documentFragment = this.ac_.bW_();
|
292
292
|
var asyncOut = new AsyncVDOMBuilder(this.global, documentFragment, this);
|
293
293
|
|
294
294
|
state.bG_.emit("beginAsync", {
|
@@ -304,26 +304,26 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
304
304
|
},
|
305
305
|
|
306
306
|
flush: function () {
|
307
|
-
var events = this.
|
307
|
+
var events = this.A_.bG_;
|
308
308
|
|
309
309
|
if (events.listenerCount(EVENT_UPDATE)) {
|
310
310
|
events.emit(EVENT_UPDATE, new RenderResult(this));
|
311
311
|
}
|
312
312
|
},
|
313
313
|
|
314
|
-
|
315
|
-
return this.
|
314
|
+
ai_: function () {
|
315
|
+
return this.A_.bH_;
|
316
316
|
},
|
317
317
|
|
318
|
-
|
318
|
+
o_: function () {
|
319
319
|
return this.bX_ || (this.bX_ = new RenderResult(this));
|
320
320
|
},
|
321
321
|
|
322
322
|
on: function (event, callback) {
|
323
|
-
var state = this.
|
323
|
+
var state = this.A_;
|
324
324
|
|
325
325
|
if (event === EVENT_FINISH && state.bI_) {
|
326
|
-
callback(this.
|
326
|
+
callback(this.o_());
|
327
327
|
} else if (event === "last") {
|
328
328
|
this.onLast(callback);
|
329
329
|
} else {
|
@@ -334,10 +334,10 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
334
334
|
},
|
335
335
|
|
336
336
|
once: function (event, callback) {
|
337
|
-
var state = this.
|
337
|
+
var state = this.A_;
|
338
338
|
|
339
339
|
if (event === EVENT_FINISH && state.bI_) {
|
340
|
-
callback(this.
|
340
|
+
callback(this.o_());
|
341
341
|
} else if (event === "last") {
|
342
342
|
this.onLast(callback);
|
343
343
|
} else {
|
@@ -348,7 +348,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
348
348
|
},
|
349
349
|
|
350
350
|
emit: function (type, arg) {
|
351
|
-
var events = this.
|
351
|
+
var events = this.A_.bG_;
|
352
352
|
switch (arguments.length) {
|
353
353
|
case 1:
|
354
354
|
events.emit(type);
|
@@ -364,7 +364,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
364
364
|
},
|
365
365
|
|
366
366
|
removeListener: function () {
|
367
|
-
var events = this.
|
367
|
+
var events = this.A_.bG_;
|
368
368
|
events.removeListener.apply(events, arguments);
|
369
369
|
return this;
|
370
370
|
},
|
@@ -389,20 +389,20 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
389
389
|
return this;
|
390
390
|
},
|
391
391
|
|
392
|
-
|
392
|
+
ah_: function (host) {
|
393
393
|
var node = this.bP_;
|
394
394
|
if (!node) {
|
395
|
-
var vdomTree = this.
|
395
|
+
var vdomTree = this.ai_();
|
396
396
|
|
397
|
-
if (!host) host = this.
|
398
|
-
this.bP_ = node = vdomTree.
|
397
|
+
if (!host) host = this.C_;
|
398
|
+
this.bP_ = node = vdomTree.bp_(host, null);
|
399
399
|
morphdom(node, vdomTree, host, this.b_);
|
400
400
|
}
|
401
401
|
return node;
|
402
402
|
},
|
403
403
|
|
404
404
|
toString: function (host) {
|
405
|
-
var docFragment = this.
|
405
|
+
var docFragment = this.ah_(host);
|
406
406
|
var html = "";
|
407
407
|
|
408
408
|
var child = docFragment.firstChild;
|
@@ -441,15 +441,15 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
441
441
|
isVDOM: true,
|
442
442
|
|
443
443
|
c: function (componentDef, key, customEvents) {
|
444
|
-
this.
|
445
|
-
this.
|
446
|
-
this.
|
444
|
+
this.aa_ = componentDef;
|
445
|
+
this.ab_ = key;
|
446
|
+
this.bd_ = customEvents;
|
447
447
|
}
|
448
448
|
};
|
449
449
|
|
450
450
|
proto.e = proto.element;
|
451
451
|
proto.be = proto.beginElement;
|
452
|
-
proto.ee = proto.
|
452
|
+
proto.ee = proto.bm_ = proto.endElement;
|
453
453
|
proto.t = proto.text;
|
454
454
|
proto.h = proto.w = proto.write = proto.html;
|
455
455
|
|
@@ -4,8 +4,8 @@ var VNode = require("./VNode");
|
|
4
4
|
function VComponent(component, key, ownerComponent, preserve) {
|
5
5
|
this.bY_(null /* childCount */, ownerComponent);
|
6
6
|
this.ca_ = key;
|
7
|
-
this.
|
8
|
-
this.
|
7
|
+
this.t_ = component;
|
8
|
+
this.ae_ = preserve;
|
9
9
|
}
|
10
10
|
|
11
11
|
VComponent.prototype = {
|
@@ -10,7 +10,7 @@ function VDocumentFragmentClone(other) {
|
|
10
10
|
|
11
11
|
function VDocumentFragment(out) {
|
12
12
|
this.bY_(null /* childCount */);
|
13
|
-
this.
|
13
|
+
this.s_ = out;
|
14
14
|
}
|
15
15
|
|
16
16
|
VDocumentFragment.prototype = {
|
@@ -22,7 +22,7 @@ VDocumentFragment.prototype = {
|
|
22
22
|
return new VDocumentFragmentClone(this);
|
23
23
|
},
|
24
24
|
|
25
|
-
|
25
|
+
bp_: function (host) {
|
26
26
|
return (host.ownerDocument || host).createDocumentFragment();
|
27
27
|
}
|
28
28
|
};
|
@@ -3,7 +3,7 @@
|
|
3
3
|
var inherit = require("raptor-util/inherit");
|
4
4
|
var componentsUtil = require("@internal/components-util");
|
5
5
|
var domData = require("../components/dom-data");
|
6
|
-
var vElementByDOMNode = domData.
|
6
|
+
var vElementByDOMNode = domData._L_;
|
7
7
|
var VNode = require("./VNode");
|
8
8
|
var ATTR_XLINK_HREF = "xlink:href";
|
9
9
|
var xmlnsRegExp = /^xmlns(:|$)/;
|
@@ -86,9 +86,9 @@ function VElementClone(other) {
|
|
86
86
|
|
87
87
|
this.ca_ = other.ca_;
|
88
88
|
this.cf_ = other.cf_;
|
89
|
-
this.
|
89
|
+
this._P_ = other._P_;
|
90
90
|
this.cg_ = other.cg_;
|
91
|
-
this.
|
91
|
+
this.v_ = other.v_;
|
92
92
|
this.ch_ = other.ch_;
|
93
93
|
this.ci_ = other.ci_;
|
94
94
|
}
|
@@ -111,14 +111,14 @@ props)
|
|
111
111
|
}
|
112
112
|
|
113
113
|
this.ca_ = key;
|
114
|
-
this.
|
114
|
+
this.v_ = flags || 0;
|
115
115
|
this.cf_ = attrs || EMPTY_OBJECT;
|
116
|
-
this.
|
116
|
+
this._P_ = props || EMPTY_OBJECT;
|
117
117
|
this.cg_ = tagName;
|
118
118
|
this.ch_ = "";
|
119
119
|
this.ci_ = constId;
|
120
|
+
this.ae_ = false;
|
120
121
|
this.ad_ = false;
|
121
|
-
this.ac_ = false;
|
122
122
|
}
|
123
123
|
|
124
124
|
VElement.prototype = {
|
@@ -163,17 +163,17 @@ VElement.prototype = {
|
|
163
163
|
*/
|
164
164
|
n: function (node, ownerComponent) {
|
165
165
|
node = node.bS_();
|
166
|
-
node.
|
166
|
+
node._N_ = ownerComponent;
|
167
167
|
this.bR_(node);
|
168
168
|
return this.cj_();
|
169
169
|
},
|
170
170
|
|
171
|
-
|
171
|
+
bp_: function (host, parentNamespaceURI) {
|
172
172
|
var tagName = this.cg_;
|
173
173
|
var attributes = this.cf_;
|
174
174
|
var namespaceURI = DEFAULT_NS[tagName] || parentNamespaceURI || NS_HTML;
|
175
175
|
|
176
|
-
var flags = this.
|
176
|
+
var flags = this.v_;
|
177
177
|
var el = (host.ownerDocument || host).createElementNS(
|
178
178
|
namespaceURI,
|
179
179
|
tagName
|
@@ -223,7 +223,7 @@ function virtualizeElement(node, virtualizeChildNodes, ownerComponent) {
|
|
223
223
|
var attrName = attr.name;
|
224
224
|
if (!xmlnsRegExp.test(attrName)) {
|
225
225
|
if (attrName === "data-marko") {
|
226
|
-
props = componentsUtil.
|
226
|
+
props = componentsUtil._s_(node);
|
227
227
|
} else if (attr.namespaceURI === NS_XLINK) {
|
228
228
|
attrs[ATTR_XLINK_HREF] = attr.value;
|
229
229
|
} else {
|
@@ -261,15 +261,15 @@ function virtualizeElement(node, virtualizeChildNodes, ownerComponent) {
|
|
261
261
|
VElement.ck_ = virtualizeElement;
|
262
262
|
|
263
263
|
VElement.cl_ = function (fromEl, vFromEl, toEl) {
|
264
|
-
var fromFlags = vFromEl.
|
265
|
-
var toFlags = toEl.
|
264
|
+
var fromFlags = vFromEl.v_;
|
265
|
+
var toFlags = toEl.v_;
|
266
266
|
var attrs = toEl.cf_;
|
267
267
|
|
268
268
|
if (toFlags & FLAG_CUSTOM_ELEMENT) {
|
269
269
|
return assign(fromEl, attrs);
|
270
270
|
}
|
271
271
|
|
272
|
-
var props = toEl.
|
272
|
+
var props = toEl._P_;
|
273
273
|
var attrName;
|
274
274
|
|
275
275
|
// We use expando properties to associate the previous HTML
|
@@ -1,19 +1,19 @@
|
|
1
1
|
"use strict";var inherit = require("raptor-util/inherit");
|
2
2
|
var domData = require("../components/dom-data");
|
3
|
-
var keysByDOMNode = domData.
|
4
|
-
var vElementByDOMNode = domData.
|
5
|
-
var createFragmentNode = require("./morphdom/fragment").
|
3
|
+
var keysByDOMNode = domData._o_;
|
4
|
+
var vElementByDOMNode = domData._L_;
|
5
|
+
var createFragmentNode = require("./morphdom/fragment")._l_;
|
6
6
|
var VNode = require("./VNode");
|
7
7
|
|
8
8
|
function VFragment(key, ownerComponent, preserve) {
|
9
9
|
this.bY_(null /* childCount */, ownerComponent);
|
10
10
|
this.ca_ = key;
|
11
|
-
this.
|
11
|
+
this.ae_ = preserve;
|
12
12
|
}
|
13
13
|
|
14
14
|
VFragment.prototype = {
|
15
15
|
c__: 12,
|
16
|
-
|
16
|
+
bp_: function () {
|
17
17
|
var fragment = createFragmentNode();
|
18
18
|
keysByDOMNode.set(fragment, this.ca_);
|
19
19
|
vElementByDOMNode.set(fragment, this);
|
@@ -8,14 +8,14 @@ VNode.prototype = {
|
|
8
8
|
this.co_ = null;
|
9
9
|
this.cb_ = null;
|
10
10
|
this.cc_ = null;
|
11
|
-
this.
|
11
|
+
this._N_ = ownerComponent;
|
12
12
|
},
|
13
13
|
|
14
|
-
get
|
14
|
+
get aB_() {
|
15
15
|
var firstChild = this.ce_;
|
16
16
|
|
17
17
|
if (firstChild && firstChild.cd_) {
|
18
|
-
var nestedFirstChild = firstChild.
|
18
|
+
var nestedFirstChild = firstChild.aB_;
|
19
19
|
// The first child is a DocumentFragment node.
|
20
20
|
// If the DocumentFragment node has a first child then we will return that.
|
21
21
|
// Otherwise, the DocumentFragment node is not *really* the first child and
|
@@ -31,7 +31,7 @@ VNode.prototype = {
|
|
31
31
|
|
32
32
|
if (nextSibling) {
|
33
33
|
if (nextSibling.cd_) {
|
34
|
-
var firstChild = nextSibling.
|
34
|
+
var firstChild = nextSibling.aB_;
|
35
35
|
return firstChild || nextSibling.cp_;
|
36
36
|
}
|
37
37
|
} else {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";var registry = require("@internal/components-registry");
|
2
|
-
var setImmediate = require("@internal/set-immediate").
|
2
|
+
var setImmediate = require("@internal/set-immediate")._k_;
|
3
3
|
var updateManager = require("../components/update-manager");
|
4
4
|
var runtime = require(".");
|
5
5
|
|
6
6
|
var createTemplate = runtime.t;
|
7
|
-
var createComponent = registry.
|
7
|
+
var createComponent = registry._H_;
|
8
8
|
var registered = {};
|
9
9
|
var instancesByType = {};
|
10
10
|
var queue;
|
@@ -31,33 +31,33 @@ exports.t = runtime.t = function (typeName) {
|
|
31
31
|
}
|
32
32
|
|
33
33
|
queue.push(function () {
|
34
|
-
var newProto = registry.
|
34
|
+
var newProto = registry._I_(typeName).prototype;
|
35
35
|
instances.forEach(function (instance) {
|
36
36
|
if (hasLifecycleChanged(instance.__proto__, newProto)) {
|
37
|
-
var renderer = instance.
|
38
|
-
instance.
|
39
|
-
instance.
|
37
|
+
var renderer = instance.R_;
|
38
|
+
instance.R_ = (input, out) => {
|
39
|
+
instance.aG_(input, out);
|
40
40
|
if (instance.onInput) {
|
41
41
|
input = instance.onInput(input, out) || input;
|
42
42
|
}
|
43
|
-
instance.
|
44
|
-
instance.
|
43
|
+
instance.R_ = renderer;
|
44
|
+
instance.R_(input, out);
|
45
45
|
};
|
46
46
|
|
47
47
|
instance.cr_ = true;
|
48
|
-
instance.
|
49
|
-
instance.
|
48
|
+
instance.ap_();
|
49
|
+
instance._y_ = false;
|
50
50
|
|
51
|
-
if (instance.
|
52
|
-
instance.
|
53
|
-
instance.
|
51
|
+
if (instance.aj_) {
|
52
|
+
instance.aj_.removeAllListeners();
|
53
|
+
instance.aj_ = null;
|
54
54
|
}
|
55
55
|
}
|
56
56
|
|
57
57
|
instance.__proto__ = newProto;
|
58
|
-
instance.
|
59
|
-
instance.
|
60
|
-
afterInsert(instance.
|
58
|
+
instance._G_(
|
59
|
+
instance.P_, false).
|
60
|
+
afterInsert(instance.C_);
|
61
61
|
});
|
62
62
|
});
|
63
63
|
}
|
@@ -71,7 +71,7 @@ exports.t = runtime.t = function (typeName) {
|
|
71
71
|
}
|
72
72
|
};
|
73
73
|
|
74
|
-
registry.
|
74
|
+
registry._H_ = function (typeName, id) {
|
75
75
|
var instances = instancesByType[typeName];
|
76
76
|
var instance = createComponent(typeName, id);
|
77
77
|
|
@@ -104,7 +104,7 @@ function hasLifecycleChanged(oldProto, newProto) {
|
|
104
104
|
}
|
105
105
|
|
106
106
|
function batchUpdate() {
|
107
|
-
updateManager.
|
107
|
+
updateManager.az_(function () {
|
108
108
|
var pending = queue;
|
109
109
|
queue = undefined;
|
110
110
|
|
@@ -13,11 +13,11 @@ exports.t = function createTemplate(typeName) {
|
|
13
13
|
};
|
14
14
|
|
15
15
|
function Template(typeName) {
|
16
|
-
this.path = this.
|
16
|
+
this.path = this.S_ = typeName;
|
17
17
|
}
|
18
18
|
|
19
19
|
var AsyncVDOMBuilder = require("./AsyncVDOMBuilder");
|
20
|
-
require("../createOut").
|
20
|
+
require("../createOut").bf_(
|
21
21
|
Template.prototype.createOut = function createOut(
|
22
22
|
globalData,
|
23
23
|
parent,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";var helpers = require("./helpers");
|
2
|
-
var insertBefore = helpers.
|
2
|
+
var insertBefore = helpers.bg_;
|
3
3
|
|
4
4
|
var fragmentPrototype = {
|
5
5
|
nodeType: 12,
|
@@ -91,5 +91,5 @@ function beginFragmentNode(startNode, parentNode) {
|
|
91
91
|
return fragment;
|
92
92
|
}
|
93
93
|
|
94
|
-
exports.
|
94
|
+
exports._l_ = createFragmentNode;
|
95
95
|
exports.ct_ = beginFragmentNode;
|
@@ -35,8 +35,8 @@ function removeChild(node) {
|
|
35
35
|
node.parentNode.removeChild(node);
|
36
36
|
}
|
37
37
|
|
38
|
-
exports.
|
39
|
-
exports.
|
38
|
+
exports.bg_ = insertBefore;
|
39
|
+
exports.bh_ = insertAfter;
|
40
40
|
exports.cp_ = nextSibling;
|
41
|
-
exports.
|
42
|
-
exports.
|
41
|
+
exports.aB_ = firstChild;
|
42
|
+
exports.bi_ = removeChild;
|