marko 5.21.4 → 5.21.5
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 +26 -6
- package/dist/runtime/RenderResult.js +7 -7
- package/dist/runtime/components/Component.js +129 -129
- package/dist/runtime/components/ComponentDef.js +25 -25
- package/dist/runtime/components/ComponentsContext.js +8 -8
- 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 +25 -25
- package/dist/runtime/components/attach-detach.js +8 -8
- package/dist/runtime/components/beginComponent/index-browser.js +2 -2
- package/dist/runtime/components/beginComponent/index.js +7 -7
- package/dist/runtime/components/defineComponent.js +5 -5
- package/dist/runtime/components/dom-data.js +3 -3
- package/dist/runtime/components/endComponent/index.js +2 -2
- package/dist/runtime/components/entry/index-browser.js +4 -4
- package/dist/runtime/components/entry/index.js +15 -15
- package/dist/runtime/components/event-delegation.js +10 -10
- package/dist/runtime/components/init-components/index-browser.js +34 -34
- package/dist/runtime/components/registry/index-browser.js +7 -7
- package/dist/runtime/components/registry/index.js +2 -2
- package/dist/runtime/components/renderer.js +26 -26
- package/dist/runtime/components/update-manager.js +10 -10
- package/dist/runtime/components/util/index-browser.js +17 -17
- package/dist/runtime/components/util/index.js +9 -9
- 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 +7 -7
- package/dist/runtime/helpers/style-value.js +1 -1
- package/dist/runtime/html/AsyncStream.js +20 -20
- package/dist/runtime/html/BufferedWriter.js +2 -2
- package/dist/runtime/html/StringWriter.js +1 -1
- package/dist/runtime/html/helpers/attr.js +1 -1
- package/dist/runtime/html/helpers/data-marko.js +4 -4
- package/dist/runtime/html/helpers/escape-quotes.js +1 -1
- package/dist/runtime/html/helpers/escape-xml.js +1 -1
- package/dist/runtime/html/helpers/props-script.js +1 -1
- package/dist/runtime/html/index.js +1 -1
- package/dist/runtime/renderable.js +4 -4
- package/dist/runtime/setImmediate/index-browser.js +1 -1
- package/dist/runtime/setImmediate/index-worker.js +2 -2
- package/dist/runtime/setImmediate/index.js +2 -2
- package/dist/runtime/vdom/AsyncVDOMBuilder.js +28 -28
- package/dist/runtime/vdom/VDocumentFragment.js +1 -1
- package/dist/runtime/vdom/VElement.js +11 -11
- package/dist/runtime/vdom/VFragment.js +3 -3
- package/dist/runtime/vdom/VNode.js +4 -4
- package/dist/runtime/vdom/hot-reload.js +15 -15
- package/dist/runtime/vdom/index.js +1 -1
- 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 +28 -28
- package/dist/runtime/vdom/morphdom/specialElHandlers.js +1 -1
- package/package.json +2 -2
- package/src/core-tags/core/await/reorderer-renderer.js +27 -7
@@ -8,7 +8,7 @@ var markoAttr = require("./helpers/data-marko");
|
|
8
8
|
var escapeXmlHelper = require("./helpers/escape-xml");
|
9
9
|
var parseHTML = require("../vdom/parse-html");
|
10
10
|
var escapeXmlOrNullish = escapeXmlHelper.x;
|
11
|
-
var escapeXmlString = escapeXmlHelper.
|
11
|
+
var escapeXmlString = escapeXmlHelper.aP_;
|
12
12
|
var selfClosingTags = require("self-closing-tags");
|
13
13
|
|
14
14
|
function noop() {}
|
@@ -93,8 +93,8 @@ function AsyncStream(global, writer, parentOut) {
|
|
93
93
|
|
94
94
|
this.g_ = null;
|
95
95
|
this.i_ = null;
|
96
|
-
this.
|
97
|
-
this.
|
96
|
+
this.ay_ = null;
|
97
|
+
this.aQ_ = false;
|
98
98
|
}
|
99
99
|
|
100
100
|
AsyncStream.DEFAULT_TIMEOUT = 10000;
|
@@ -114,8 +114,8 @@ AsyncStream.enableAsyncStackTrace = function () {
|
|
114
114
|
|
115
115
|
var proto = AsyncStream.prototype = {
|
116
116
|
constructor: AsyncStream,
|
117
|
-
|
118
|
-
|
117
|
+
Y_: typeof document === "object" && document,
|
118
|
+
aR_: true,
|
119
119
|
|
120
120
|
sync: function () {
|
121
121
|
this._sync = true;
|
@@ -139,7 +139,7 @@ var proto = AsyncStream.prototype = {
|
|
139
139
|
return this;
|
140
140
|
},
|
141
141
|
|
142
|
-
|
142
|
+
C_: function () {
|
143
143
|
return this._state.writer.toString();
|
144
144
|
},
|
145
145
|
|
@@ -147,14 +147,14 @@ var proto = AsyncStream.prototype = {
|
|
147
147
|
* Legacy...
|
148
148
|
*/
|
149
149
|
getOutput: function () {
|
150
|
-
return this.
|
150
|
+
return this.C_();
|
151
151
|
},
|
152
152
|
|
153
153
|
toString: function () {
|
154
154
|
return this._state.writer.toString();
|
155
155
|
},
|
156
156
|
|
157
|
-
|
157
|
+
aS_: function () {
|
158
158
|
this._result = this._result || new RenderResult(this);
|
159
159
|
return this._result;
|
160
160
|
},
|
@@ -205,7 +205,7 @@ var proto = AsyncStream.prototype = {
|
|
205
205
|
}
|
206
206
|
|
207
207
|
this._lastCount++;
|
208
|
-
newStream.
|
208
|
+
newStream.aQ_ = true;
|
209
209
|
}
|
210
210
|
|
211
211
|
name = options.name;
|
@@ -249,7 +249,7 @@ var proto = AsyncStream.prototype = {
|
|
249
249
|
if (state.writer.end) {
|
250
250
|
state.writer.end();
|
251
251
|
} else {
|
252
|
-
state.events.emit("finish", this.
|
252
|
+
state.events.emit("finish", this.aS_());
|
253
253
|
}
|
254
254
|
},
|
255
255
|
|
@@ -321,7 +321,7 @@ var proto = AsyncStream.prototype = {
|
|
321
321
|
parentOut._handleChildDone(this);
|
322
322
|
}
|
323
323
|
} else {
|
324
|
-
if (childOut.
|
324
|
+
if (childOut.aQ_) {
|
325
325
|
this._lastCount--;
|
326
326
|
}
|
327
327
|
|
@@ -362,7 +362,7 @@ var proto = AsyncStream.prototype = {
|
|
362
362
|
var state = this._state;
|
363
363
|
|
364
364
|
if (event === "finish" && state.finished === true) {
|
365
|
-
callback(this.
|
365
|
+
callback(this.aS_());
|
366
366
|
} else if (event === "last") {
|
367
367
|
this.onLast(callback);
|
368
368
|
} else {
|
@@ -376,7 +376,7 @@ var proto = AsyncStream.prototype = {
|
|
376
376
|
var state = this._state;
|
377
377
|
|
378
378
|
if (event === "finish" && state.finished === true) {
|
379
|
-
callback(this.
|
379
|
+
callback(this.aS_());
|
380
380
|
} else if (event === "last") {
|
381
381
|
this.onLast(callback);
|
382
382
|
} else {
|
@@ -501,7 +501,7 @@ var proto = AsyncStream.prototype = {
|
|
501
501
|
return newOut;
|
502
502
|
},
|
503
503
|
|
504
|
-
|
504
|
+
aO_: function (
|
505
505
|
tagName,
|
506
506
|
elementAttrs,
|
507
507
|
key,
|
@@ -535,7 +535,7 @@ var proto = AsyncStream.prototype = {
|
|
535
535
|
this.write(str);
|
536
536
|
},
|
537
537
|
|
538
|
-
|
538
|
+
aM_: function (
|
539
539
|
name,
|
540
540
|
elementAttrs,
|
541
541
|
key,
|
@@ -601,14 +601,14 @@ var proto = AsyncStream.prototype = {
|
|
601
601
|
}
|
602
602
|
},
|
603
603
|
|
604
|
-
|
604
|
+
B_: function (host) {
|
605
605
|
var node = this._node;
|
606
606
|
|
607
607
|
if (!node) {
|
608
608
|
var nextEl;
|
609
609
|
var fragment;
|
610
|
-
var html = this.
|
611
|
-
if (!host) host = this.
|
610
|
+
var html = this.C_();
|
611
|
+
if (!host) host = this.Y_;
|
612
612
|
var doc = host.ownerDocument || host;
|
613
613
|
|
614
614
|
if (html) {
|
@@ -652,13 +652,13 @@ var proto = AsyncStream.prototype = {
|
|
652
652
|
c: function (componentDef, key, customEvents) {
|
653
653
|
this.g_ = componentDef;
|
654
654
|
this.i_ = key;
|
655
|
-
this.
|
655
|
+
this.ay_ = customEvents;
|
656
656
|
} };
|
657
657
|
|
658
658
|
|
659
659
|
// alias:
|
660
660
|
proto.w = proto.write;
|
661
|
-
proto.
|
661
|
+
proto.aN_ = proto.endElement;
|
662
662
|
|
663
663
|
module.exports = AsyncStream;
|
664
664
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
const immediate = require("../setImmediate");
|
4
|
-
const setImmediate = immediate.
|
5
|
-
const clearImmediate = immediate.
|
4
|
+
const setImmediate = immediate.aA_;
|
5
|
+
const clearImmediate = immediate.aT_;
|
6
6
|
const StringWriter = require("./StringWriter");
|
7
7
|
|
8
8
|
/**
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
var escapeQuoteHelpers = require("./escape-quotes");
|
4
4
|
var escapeSingleQuotes = escapeQuoteHelpers.b__;
|
5
|
-
var escapeDoubleQuotes = escapeQuoteHelpers.
|
5
|
+
var escapeDoubleQuotes = escapeQuoteHelpers.y_;
|
6
6
|
var FLAG_WILL_RERENDER_IN_BROWSER = 1;
|
7
7
|
// var FLAG_HAS_RENDER_BODY = 2;
|
8
8
|
|
@@ -10,8 +10,8 @@ module.exports = function dataMarko(out, componentDef, props, key) {
|
|
10
10
|
var result = "";
|
11
11
|
var willNotRerender =
|
12
12
|
out.b_.p_ ||
|
13
|
-
componentDef.
|
14
|
-
(componentDef.
|
13
|
+
componentDef._I_ &&
|
14
|
+
(componentDef._J_ & FLAG_WILL_RERENDER_IN_BROWSER) === 0;
|
15
15
|
|
16
16
|
if (willNotRerender) {
|
17
17
|
if (props) {
|
@@ -27,7 +27,7 @@ module.exports = function dataMarko(out, componentDef, props, key) {
|
|
27
27
|
result +=
|
28
28
|
' data-marko-key="' +
|
29
29
|
escapeDoubleQuotes(
|
30
|
-
componentDef.
|
30
|
+
componentDef._M_(key) + " " + componentDef.id) +
|
31
31
|
|
32
32
|
'"';
|
33
33
|
}
|
@@ -17,7 +17,7 @@ function Template(typeName) {
|
|
17
17
|
Template.prototype.stream = require("./create-readable");
|
18
18
|
|
19
19
|
var AsyncStream = require("./AsyncStream");
|
20
|
-
require("../createOut").
|
20
|
+
require("../createOut").aG_(
|
21
21
|
Template.prototype.createOut = function createOut(
|
22
22
|
globalData,
|
23
23
|
writer,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"use strict";var defaultCreateOut = require("./createOut");
|
2
|
-
var setImmediate = require("./setImmediate").
|
2
|
+
var setImmediate = require("./setImmediate").aA_;
|
3
3
|
var extend = require("raptor-util/extend");
|
4
4
|
|
5
5
|
function safeRender(renderFunc, finalData, finalOut, shouldEnd) {
|
@@ -70,7 +70,7 @@ module.exports = function (target, renderer) {
|
|
70
70
|
}
|
71
71
|
|
72
72
|
render(localData, out);
|
73
|
-
return out.
|
73
|
+
return out.aS_();
|
74
74
|
},
|
75
75
|
|
76
76
|
/**
|
@@ -108,7 +108,7 @@ module.exports = function (target, renderer) {
|
|
108
108
|
finalData = {};
|
109
109
|
}
|
110
110
|
|
111
|
-
if (out && out.
|
111
|
+
if (out && out.aR_) {
|
112
112
|
finalOut = out;
|
113
113
|
shouldEnd = false;
|
114
114
|
extend(out.global, globalData);
|
@@ -127,7 +127,7 @@ module.exports = function (target, renderer) {
|
|
127
127
|
if (callback) {
|
128
128
|
finalOut.
|
129
129
|
on("finish", function () {
|
130
|
-
callback(null, finalOut.
|
130
|
+
callback(null, finalOut.aS_());
|
131
131
|
}).
|
132
132
|
once("error", callback);
|
133
133
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";exports.
|
2
|
-
exports.
|
1
|
+
"use strict";exports.aA_ = setTimeout;
|
2
|
+
exports.aT_ = clearTimeout;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";exports.
|
2
|
-
exports.
|
1
|
+
"use strict";exports.aA_ = setImmediate;
|
2
|
+
exports.aT_ = clearImmediate;
|
@@ -27,7 +27,7 @@ function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
|
|
27
27
|
var state;
|
28
28
|
|
29
29
|
if (parentOut) {
|
30
|
-
state = parentOut.
|
30
|
+
state = parentOut.K_;
|
31
31
|
} else {
|
32
32
|
state = new State(parentNode);
|
33
33
|
}
|
@@ -38,7 +38,7 @@ function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
|
|
38
38
|
this.bn_ = parentOut;
|
39
39
|
|
40
40
|
this.data = {};
|
41
|
-
this.
|
41
|
+
this.K_ = state;
|
42
42
|
this.l_ = parentNode;
|
43
43
|
this.global = globalData || {};
|
44
44
|
this.bo_ = [parentNode];
|
@@ -48,19 +48,19 @@ function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
|
|
48
48
|
|
49
49
|
this.g_ = null;
|
50
50
|
this.i_ = null;
|
51
|
-
this.
|
51
|
+
this.ay_ = null;
|
52
52
|
}
|
53
53
|
|
54
54
|
var proto = AsyncVDOMBuilder.prototype = {
|
55
|
-
|
56
|
-
|
55
|
+
aR_: true,
|
56
|
+
Y_: typeof document === "object" && document,
|
57
57
|
|
58
58
|
bc: function (component, key, ownerComponent) {
|
59
59
|
var vComponent = new VComponent(component, key, ownerComponent);
|
60
60
|
return this.br_(vComponent, 0, true);
|
61
61
|
},
|
62
62
|
|
63
|
-
|
63
|
+
az_: function (component, key, ownerComponent) {
|
64
64
|
var vComponent = new VComponent(component, key, ownerComponent, true);
|
65
65
|
this.br_(vComponent, 0);
|
66
66
|
},
|
@@ -87,7 +87,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
87
87
|
return this.br_(element, childCount);
|
88
88
|
},
|
89
89
|
|
90
|
-
|
90
|
+
aO_: function (tagName, attrs, key, componentDef, props) {
|
91
91
|
return this.element(
|
92
92
|
tagName,
|
93
93
|
attrsHelper(attrs),
|
@@ -104,7 +104,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
104
104
|
// and a node can only have one parent node.
|
105
105
|
var clone = node.bt_();
|
106
106
|
this.node(clone);
|
107
|
-
clone.
|
107
|
+
clone.aC_ = component;
|
108
108
|
|
109
109
|
return this;
|
110
110
|
},
|
@@ -164,7 +164,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
164
164
|
return this;
|
165
165
|
},
|
166
166
|
|
167
|
-
|
167
|
+
aM_: function (tagName, attrs, key, componentDef, props) {
|
168
168
|
return this.beginElement(
|
169
169
|
tagName,
|
170
170
|
attrsHelper(attrs),
|
@@ -227,9 +227,9 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
227
227
|
},
|
228
228
|
|
229
229
|
bv_: function () {
|
230
|
-
var state = this.
|
230
|
+
var state = this.K_;
|
231
231
|
state.bj_ = true;
|
232
|
-
state.bh_.emit(EVENT_FINISH, this.
|
232
|
+
state.bh_.emit(EVENT_FINISH, this.aS_());
|
233
233
|
},
|
234
234
|
|
235
235
|
bw_: function () {
|
@@ -273,7 +273,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
273
273
|
|
274
274
|
}
|
275
275
|
|
276
|
-
var state = this.
|
276
|
+
var state = this.K_;
|
277
277
|
|
278
278
|
if (options) {
|
279
279
|
if (options.last) {
|
@@ -299,26 +299,26 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
299
299
|
},
|
300
300
|
|
301
301
|
flush: function () {
|
302
|
-
var events = this.
|
302
|
+
var events = this.K_.bh_;
|
303
303
|
|
304
304
|
if (events.listenerCount(EVENT_UPDATE)) {
|
305
305
|
events.emit(EVENT_UPDATE, new RenderResult(this));
|
306
306
|
}
|
307
307
|
},
|
308
308
|
|
309
|
-
|
310
|
-
return this.
|
309
|
+
C_: function () {
|
310
|
+
return this.K_.bi_;
|
311
311
|
},
|
312
312
|
|
313
|
-
|
313
|
+
aS_: function () {
|
314
314
|
return this.by_ || (this.by_ = new RenderResult(this));
|
315
315
|
},
|
316
316
|
|
317
317
|
on: function (event, callback) {
|
318
|
-
var state = this.
|
318
|
+
var state = this.K_;
|
319
319
|
|
320
320
|
if (event === EVENT_FINISH && state.bj_) {
|
321
|
-
callback(this.
|
321
|
+
callback(this.aS_());
|
322
322
|
} else if (event === "last") {
|
323
323
|
this.onLast(callback);
|
324
324
|
} else {
|
@@ -329,10 +329,10 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
329
329
|
},
|
330
330
|
|
331
331
|
once: function (event, callback) {
|
332
|
-
var state = this.
|
332
|
+
var state = this.K_;
|
333
333
|
|
334
334
|
if (event === EVENT_FINISH && state.bj_) {
|
335
|
-
callback(this.
|
335
|
+
callback(this.aS_());
|
336
336
|
} else if (event === "last") {
|
337
337
|
this.onLast(callback);
|
338
338
|
} else {
|
@@ -343,7 +343,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
343
343
|
},
|
344
344
|
|
345
345
|
emit: function (type, arg) {
|
346
|
-
var events = this.
|
346
|
+
var events = this.K_.bh_;
|
347
347
|
switch (arguments.length) {
|
348
348
|
case 1:
|
349
349
|
events.emit(type);
|
@@ -359,7 +359,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
359
359
|
},
|
360
360
|
|
361
361
|
removeListener: function () {
|
362
|
-
var events = this.
|
362
|
+
var events = this.K_.bh_;
|
363
363
|
events.removeListener.apply(events, arguments);
|
364
364
|
return this;
|
365
365
|
},
|
@@ -384,12 +384,12 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
384
384
|
return this;
|
385
385
|
},
|
386
386
|
|
387
|
-
|
387
|
+
B_: function (host) {
|
388
388
|
var node = this.bq_;
|
389
389
|
if (!node) {
|
390
|
-
var vdomTree = this.
|
390
|
+
var vdomTree = this.C_();
|
391
391
|
|
392
|
-
if (!host) host = this.
|
392
|
+
if (!host) host = this.Y_;
|
393
393
|
this.bq_ = node = vdomTree.bz_(host, null);
|
394
394
|
morphdom(node, vdomTree, host, this.b_);
|
395
395
|
}
|
@@ -397,7 +397,7 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
397
397
|
},
|
398
398
|
|
399
399
|
toString: function (host) {
|
400
|
-
var docFragment = this.
|
400
|
+
var docFragment = this.B_(host);
|
401
401
|
var html = "";
|
402
402
|
|
403
403
|
var child = docFragment.firstChild;
|
@@ -437,13 +437,13 @@ var proto = AsyncVDOMBuilder.prototype = {
|
|
437
437
|
c: function (componentDef, key, customEvents) {
|
438
438
|
this.g_ = componentDef;
|
439
439
|
this.i_ = key;
|
440
|
-
this.
|
440
|
+
this.ay_ = customEvents;
|
441
441
|
} };
|
442
442
|
|
443
443
|
|
444
444
|
proto.e = proto.element;
|
445
445
|
proto.be = proto.beginElement;
|
446
|
-
proto.ee = proto.
|
446
|
+
proto.ee = proto.aN_ = proto.endElement;
|
447
447
|
proto.t = proto.text;
|
448
448
|
proto.h = proto.w = proto.write = proto.html;
|
449
449
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
var domData = require("../components/dom-data");
|
4
4
|
var componentsUtil = require("../components/util");
|
5
|
-
var vElementByDOMNode = domData.
|
5
|
+
var vElementByDOMNode = domData.af_;
|
6
6
|
var VNode = require("./VNode");
|
7
7
|
var inherit = require("raptor-util/inherit");
|
8
8
|
var ATTR_XLINK_HREF = "xlink:href";
|
@@ -69,9 +69,9 @@ function VElementClone(other) {
|
|
69
69
|
|
70
70
|
this.bB_ = other.bB_;
|
71
71
|
this.bH_ = other.bH_;
|
72
|
-
this.
|
72
|
+
this.aD_ = other.aD_;
|
73
73
|
this.bI_ = other.bI_;
|
74
|
-
this.
|
74
|
+
this._J_ = other._J_;
|
75
75
|
this.bJ_ = other.bJ_;
|
76
76
|
this.bK_ = other.bK_;
|
77
77
|
}
|
@@ -94,9 +94,9 @@ props)
|
|
94
94
|
}
|
95
95
|
|
96
96
|
this.bB_ = key;
|
97
|
-
this.
|
97
|
+
this._J_ = flags || 0;
|
98
98
|
this.bH_ = attrs || EMPTY_OBJECT;
|
99
|
-
this.
|
99
|
+
this.aD_ = props || EMPTY_OBJECT;
|
100
100
|
this.bI_ = tagName;
|
101
101
|
this.bJ_ = null;
|
102
102
|
this.bK_ = constId;
|
@@ -146,7 +146,7 @@ VElement.prototype = {
|
|
146
146
|
*/
|
147
147
|
n: function (node, ownerComponent) {
|
148
148
|
node = node.bt_();
|
149
|
-
node.
|
149
|
+
node.aC_ = ownerComponent;
|
150
150
|
this.bs_(node);
|
151
151
|
return this.bL_();
|
152
152
|
},
|
@@ -156,7 +156,7 @@ VElement.prototype = {
|
|
156
156
|
var attributes = this.bH_;
|
157
157
|
var namespaceURI = DEFAULT_NS[tagName] || parentNamespaceURI || NS_HTML;
|
158
158
|
|
159
|
-
var flags = this.
|
159
|
+
var flags = this._J_;
|
160
160
|
var el = (host.ownerDocument || host).createElementNS(
|
161
161
|
namespaceURI,
|
162
162
|
tagName);
|
@@ -254,7 +254,7 @@ function virtualizeElement(node, virtualizeChildNodes, ownerComponent) {
|
|
254
254
|
var attrName = attr.name;
|
255
255
|
if (!xmlnsRegExp.test(attrName)) {
|
256
256
|
if (attrName === "data-marko") {
|
257
|
-
props = componentsUtil.
|
257
|
+
props = componentsUtil.an_(node);
|
258
258
|
} else if (attr.namespaceURI === NS_XLINK) {
|
259
259
|
attrs[ATTR_XLINK_HREF] = attr.value;
|
260
260
|
} else {
|
@@ -294,13 +294,13 @@ VElement.bO_ = virtualizeElement;
|
|
294
294
|
VElement.bP_ = function (fromEl, vFromEl, toEl) {
|
295
295
|
var removePreservedAttributes = VElement.bN_;
|
296
296
|
|
297
|
-
var fromFlags = vFromEl.
|
298
|
-
var toFlags = toEl.
|
297
|
+
var fromFlags = vFromEl._J_;
|
298
|
+
var toFlags = toEl._J_;
|
299
299
|
|
300
300
|
vElementByDOMNode.set(fromEl, toEl);
|
301
301
|
|
302
302
|
var attrs = toEl.bH_;
|
303
|
-
var props = toEl.
|
303
|
+
var props = toEl.aD_;
|
304
304
|
|
305
305
|
if (toFlags & FLAG_CUSTOM_ELEMENT) {
|
306
306
|
return assign(fromEl, attrs);
|
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";var domData = require("../components/dom-data");
|
2
|
-
var keysByDOMNode = domData.
|
3
|
-
var vElementByDOMNode = domData.
|
2
|
+
var keysByDOMNode = domData.ah_;
|
3
|
+
var vElementByDOMNode = domData.af_;
|
4
4
|
var VNode = require("./VNode");
|
5
5
|
var inherit = require("raptor-util/inherit");
|
6
|
-
var createFragmentNode = require("./morphdom/fragment").
|
6
|
+
var createFragmentNode = require("./morphdom/fragment").ap_;
|
7
7
|
|
8
8
|
function VFragment(key, ownerComponent, preserve) {
|
9
9
|
this.bA_(null /* childCount */, ownerComponent);
|
@@ -9,14 +9,14 @@ VNode.prototype = {
|
|
9
9
|
this.bS_ = null;
|
10
10
|
this.bD_ = null;
|
11
11
|
this.bE_ = null;
|
12
|
-
this.
|
12
|
+
this.aC_ = ownerComponent;
|
13
13
|
},
|
14
14
|
|
15
|
-
get
|
15
|
+
get _s_() {
|
16
16
|
var firstChild = this.bG_;
|
17
17
|
|
18
18
|
if (firstChild && firstChild.bF_) {
|
19
|
-
var nestedFirstChild = firstChild.
|
19
|
+
var nestedFirstChild = firstChild._s_;
|
20
20
|
// The first child is a DocumentFragment node.
|
21
21
|
// If the DocumentFragment node has a first child then we will return that.
|
22
22
|
// Otherwise, the DocumentFragment node is not *really* the first child and
|
@@ -32,7 +32,7 @@ VNode.prototype = {
|
|
32
32
|
|
33
33
|
if (nextSibling) {
|
34
34
|
if (nextSibling.bF_) {
|
35
|
-
var firstChild = nextSibling.
|
35
|
+
var firstChild = nextSibling._s_;
|
36
36
|
return firstChild || nextSibling.bT_;
|
37
37
|
}
|
38
38
|
} else {
|