marko 5.39.38 → 5.39.40

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.
Files changed (45) hide show
  1. package/dist/runtime/components/Component.js +31 -7
  2. package/dist/runtime/components/ComponentDef.js +10 -1
  3. package/dist/runtime/components/ServerComponent.js +13 -1
  4. package/dist/runtime/components/invoke-lifecycle.js +16 -0
  5. package/dist/runtime/components/renderer.js +8 -0
  6. package/dist/runtime/html/AsyncStream.js +34 -41
  7. package/dist/runtime/html/helpers/_dynamic-attr.js +2 -2
  8. package/dist/runtime/html/helpers/attr.js +2 -2
  9. package/dist/runtime/vdom/AsyncVDOMBuilder.js +64 -64
  10. package/dist/runtime/vdom/VComment.js +6 -6
  11. package/dist/runtime/vdom/VComponent.js +3 -3
  12. package/dist/runtime/vdom/VDocumentFragment.js +5 -5
  13. package/dist/runtime/vdom/VElement.js +29 -29
  14. package/dist/runtime/vdom/VFragment.js +4 -4
  15. package/dist/runtime/vdom/VNode.js +29 -29
  16. package/dist/runtime/vdom/VText.js +7 -7
  17. package/dist/runtime/vdom/helpers/const-element.js +3 -3
  18. package/dist/runtime/vdom/hot-reload.js +10 -3
  19. package/dist/runtime/vdom/morphdom/fragment.js +3 -3
  20. package/dist/runtime/vdom/morphdom/helpers.js +1 -1
  21. package/dist/runtime/vdom/morphdom/index.js +33 -33
  22. package/dist/runtime/vdom/vdom.js +15 -15
  23. package/dist/translator/index.js +5 -4
  24. package/dist/translator/taglib/core/translate-await.js +17 -0
  25. package/dist/translator/util/add-dependencies.js +0 -1
  26. package/dist/translator/util/get-component-files.js +1 -1
  27. package/package.json +4 -4
  28. package/src/runtime/components/Component.js +31 -7
  29. package/src/runtime/components/ComponentDef.js +11 -2
  30. package/src/runtime/components/ServerComponent.js +15 -3
  31. package/src/runtime/components/invoke-lifecycle.js +16 -0
  32. package/src/runtime/components/renderer.js +9 -1
  33. package/src/runtime/html/AsyncStream.js +34 -41
  34. package/src/runtime/vdom/hot-reload.js +8 -1
  35. package/src/translator/index.js +5 -4
  36. package/src/translator/taglib/core/translate-await.js +17 -0
  37. package/src/translator/util/add-dependencies.js +0 -1
  38. package/dist/runtime/events.js +0 -2
  39. package/dist/runtime/helpers/assign.js +0 -21
  40. package/dist/runtime/helpers/merge.js +0 -13
  41. package/dist/runtime/html/helpers/props-script.js +0 -30
  42. package/src/runtime/events.js +0 -2
  43. package/src/runtime/helpers/assign.js +0 -21
  44. package/src/runtime/helpers/merge.js +0 -13
  45. package/src/runtime/html/helpers/props-script.js +0 -30
@@ -2,6 +2,8 @@
2
2
 
3
3
  // eslint-disable-next-line no-constant-binary-expression
4
4
 
5
+ // eslint-disable-next-line no-constant-binary-expression
6
+
5
7
  var EventEmitter = require("events-light");
6
8
  var SubscriptionTracker = require("listener-tracker");
7
9
  var inherit = require("raptor-util/inherit");
@@ -432,7 +434,10 @@ Component.prototype = componentProto = {
432
434
  // We need to set a flag to preview `this.input = foo` inside
433
435
  // onInput causing infinite recursion
434
436
  this.ap_ = true;
435
- updatedInput = onInput.call(this, newInput || {}, out);
437
+ // eslint-disable-next-line no-constant-condition
438
+ updatedInput =
439
+
440
+ onInput.call(this, newInput || {}, out);
436
441
  this.ap_ = false;
437
442
  }
438
443
 
@@ -482,7 +487,12 @@ Component.prototype = componentProto = {
482
487
  // The UI component is still dirty after process state handlers
483
488
  // then we should rerender
484
489
 
485
- if (this.shouldUpdate(input, state) !== false) {
490
+ if (
491
+ // eslint-disable-next-line no-constant-condition
492
+
493
+
494
+ this.shouldUpdate(input, state) !== false)
495
+ {
486
496
  this.aA_();
487
497
  }
488
498
  }
@@ -611,27 +621,41 @@ Component.prototype = componentProto = {
611
621
 
612
622
  aH_: emit,
613
623
  aI_(input, out) {
614
- this.onCreate && this.onCreate(input, out);
624
+ this.onCreate &&
625
+ // eslint-disable-next-line no-constant-condition
626
+
627
+
628
+ this.onCreate(input, out);
615
629
  this.aH_("create", input, out);
616
630
  },
617
631
 
618
632
  aJ_(out) {
619
- this.onRender && this.onRender(out);
633
+ this.onRender &&
634
+ // eslint-disable-next-line no-constant-condition
635
+
636
+
637
+ this.onRender(out);
620
638
  this.aH_("render", out);
621
639
  },
622
640
 
623
641
  _A_() {
624
- this.onUpdate && this.onUpdate();
642
+ this.onUpdate &&
643
+ // eslint-disable-next-line no-constant-condition
644
+ this.onUpdate();
625
645
  this.aH_("update");
626
646
  },
627
647
 
628
648
  _B_() {
629
- this.onMount && this.onMount();
649
+ this.onMount &&
650
+ // eslint-disable-next-line no-constant-condition
651
+ this.onMount();
630
652
  this.aH_("mount");
631
653
  },
632
654
 
633
655
  ar_() {
634
- this.onDestroy && this.onDestroy();
656
+ this.onDestroy &&
657
+ // eslint-disable-next-line no-constant-condition
658
+ this.onDestroy();
635
659
  this.aH_("destroy");
636
660
  }
637
661
  };
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  // eslint-disable-next-line no-constant-binary-expression
3
3
 
4
+ // eslint-disable-next-line no-constant-binary-expression
5
+
4
6
  var extend = require("raptor-util/extend");
5
7
  var componentUtil = require("@internal/components-util");
6
8
  var w10NOOP = require("../helpers/serialize-noop").aM_;
@@ -123,10 +125,17 @@ ComponentDef._F_ = function (o, types, global, registry) {
123
125
  !(flags & FLAG_OLD_HYDRATE_NO_CREATE))
124
126
  {
125
127
  if (component.onCreate) {
128
+ // eslint-disable-next-line no-constant-condition
129
+
130
+
126
131
  component.onCreate(input, { global: global });
127
132
  }
128
133
  if (component.onInput) {
129
- input = component.onInput(input, { global: global }) || input;
134
+ input =
135
+ // eslint-disable-next-line no-constant-condition
136
+
137
+
138
+ component.onInput(input, { global: global }) || input;
130
139
  }
131
140
  } else {
132
141
  if (state) {
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  // eslint-disable-next-line no-constant-binary-expression
3
3
 
4
+ // eslint-disable-next-line no-constant-binary-expression
5
+
4
6
 
5
7
  class ServerComponent {
6
8
  constructor(id, input, out, typeName, customEvents, scope) {
@@ -11,11 +13,21 @@ class ServerComponent {
11
13
  this.Z_ = undefined; // Used to keep track of bubbling DOM events for components rendered on the server
12
14
  this._a_ = 0;
13
15
 
16
+ // eslint-disable-next-line no-constant-condition
17
+
18
+
14
19
  this.onCreate(input, out);
15
- this._b_ = this.onInput(input, out) || input;
20
+ this._b_ =
21
+ // eslint-disable-next-line no-constant-condition
22
+
23
+
24
+ this.onInput(input, out) || input;
16
25
  if (this.P_ === undefined) {
17
26
  this.P_ = this._b_;
18
27
  }
28
+ // eslint-disable-next-line no-constant-condition
29
+
30
+
19
31
  this.onRender(out);
20
32
  }
21
33
 
@@ -0,0 +1,16 @@
1
+ "use strict";module.exports = function invokeLifecycle(component, name, args, method) {
2
+ try {
3
+ return (method || component[name]).apply(component, args);
4
+ } catch (error) {
5
+ throw new Error(
6
+ "Error in " +
7
+ name +
8
+ ' for component "' + (
9
+ component._s_ || component.typeName) +
10
+ '" (id: ' +
11
+ component.id +
12
+ ").",
13
+ { cause: error }
14
+ );
15
+ }
16
+ };
@@ -1,4 +1,6 @@
1
1
  "use strict";var copyProps = require("raptor-util/copyProps");
2
+ // eslint-disable-next-line no-constant-binary-expression
3
+
2
4
  var beginComponent = require("@internal/components-beginComponent");
3
5
  var endComponent = require("@internal/components-endComponent");
4
6
  var registry = require("@internal/components-registry");
@@ -185,6 +187,12 @@ renderingLogic)
185
187
  if (isExisting === true) {
186
188
  if (
187
189
  component.ax_ === false ||
190
+ // eslint-disable-next-line no-constant-condition
191
+
192
+
193
+
194
+
195
+
188
196
  component.shouldUpdate(input, component.A_) === false)
189
197
  {
190
198
  // We put a placeholder element in the output stream to ensure that the existing
@@ -2,7 +2,6 @@
2
2
  var EventEmitter = require("events-light");
3
3
  var selfClosingTags = require("self-closing-tags");
4
4
  var RenderResult = require("../RenderResult");
5
- var parseHTML = require("../vdom/parse-html");
6
5
  var BufferedWriter = require("./BufferedWriter");
7
6
  var attrsHelper = require("./helpers/attrs");
8
7
  var markoAttr = require("./helpers/data-marko");
@@ -96,8 +95,6 @@ function AsyncStream(global, writer, parentOut) {
96
95
  this.name = undefined;
97
96
  this._timeoutId = undefined;
98
97
 
99
- this._node = undefined;
100
-
101
98
  this._elStack = undefined; // Array
102
99
 
103
100
  this.b_ = null; // ComponentsContext
@@ -125,7 +122,6 @@ AsyncStream.enableAsyncStackTrace = function () {
125
122
 
126
123
  var proto = AsyncStream.prototype = {
127
124
  constructor: AsyncStream,
128
- C_: typeof document === "object" && document,
129
125
  bx_: true,
130
126
 
131
127
  [Symbol.asyncIterator]() {
@@ -136,6 +132,7 @@ var proto = AsyncStream.prototype = {
136
132
  const originalWriter = this._state.writer;
137
133
  let buffer = "";
138
134
  let iteratorNextFn;
135
+ let iteratorReturnFn = defaultIteratorReturn;
139
136
 
140
137
  if (!originalWriter.stream) {
141
138
  // Writing has finished completely so we can use a simple iterator
@@ -151,7 +148,7 @@ var proto = AsyncStream.prototype = {
151
148
  let pending;
152
149
  const stream = {
153
150
  write(data) {
154
- buffer += data;
151
+ if (!done) buffer += data;
155
152
  },
156
153
  end() {
157
154
  done = true;
@@ -220,6 +217,20 @@ var proto = AsyncStream.prototype = {
220
217
 
221
218
  return pending.promise;
222
219
  };
220
+
221
+ // The last consumer to leave is still waiting on `pending`, which only a
222
+ // later write would settle; end the iteration instead of hanging on it.
223
+ iteratorReturnFn = (value) => {
224
+ done = true;
225
+ buffer = "";
226
+
227
+ if (pending) {
228
+ pending.resolve({ value: undefined, done: true });
229
+ pending = undefined;
230
+ }
231
+
232
+ return defaultIteratorReturn(value);
233
+ };
223
234
  }
224
235
 
225
236
  return this.by_ = {
@@ -234,15 +245,23 @@ var proto = AsyncStream.prototype = {
234
245
 
235
246
  toReadable() {
236
247
  let cancelled = false;
248
+ this.bz_ = (this.bz_ || 0) + 1;
237
249
  return new ReadableStream({
238
250
  start: async (ctrl) => {
239
251
  const encoder = new TextEncoder();
252
+ const iterator = this[Symbol.asyncIterator]();
240
253
  try {
241
- for await (const chunk of this) {
254
+ for (;;) {
255
+ // Read by hand: `for await` would close the shared iterator on the
256
+ // way out, ending the consumers still reading it.
257
+ const result = await iterator.next();
242
258
  if (cancelled) {
243
259
  return;
244
260
  }
245
- ctrl.enqueue(encoder.encode(chunk));
261
+ if (result.done) {
262
+ break;
263
+ }
264
+ ctrl.enqueue(encoder.encode(result.value));
246
265
  }
247
266
  ctrl.close();
248
267
  } catch (err) {
@@ -251,8 +270,14 @@ var proto = AsyncStream.prototype = {
251
270
  }
252
271
  }
253
272
  },
254
- cancel() {
273
+ cancel: () => {
255
274
  cancelled = true;
275
+
276
+ // Every consumer shares one iterator, so only the last one out may end
277
+ // it; the others are still reading.
278
+ if (! --this.bz_) {
279
+ this[Symbol.asyncIterator]().return();
280
+ }
256
281
  }
257
282
  });
258
283
  },
@@ -750,38 +775,6 @@ var proto = AsyncStream.prototype = {
750
775
  }
751
776
  },
752
777
 
753
- aj_: function (host) {
754
- var node = this._node;
755
-
756
- if (!node) {
757
- var nextEl;
758
- var fragment;
759
- var html = this.ak_();
760
- if (!host) host = this.C_;
761
- var doc = host.ownerDocument || host;
762
-
763
- if (html) {
764
- node = parseHTML(html);
765
-
766
- if (node && node.nextSibling) {
767
- // If there are multiple nodes, turn it into a document fragment.
768
- fragment = doc.createDocumentFragment();
769
-
770
- do {
771
- nextEl = node.nextSibling;
772
- fragment.appendChild(node);
773
- } while (node = nextEl);
774
-
775
- node = fragment;
776
- }
777
- }
778
-
779
- // if HTML is empty use empty document fragment (so that we're returning a valid DOM node)
780
- this._node = node || doc.createDocumentFragment();
781
- }
782
- return node;
783
- },
784
-
785
778
  then: function (fn, fnErr) {
786
779
  // eslint-disable-next-line @typescript-eslint/no-this-alias
787
780
  var out = this;
@@ -823,7 +816,7 @@ function getNonMarkoStack(error) {
823
816
  join("\n");
824
817
  }
825
818
 
826
- function iteratorReturnFn(value) {
819
+ function defaultIteratorReturn(value) {
827
820
  return Promise.resolve({
828
821
  value,
829
822
  done: true
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var attrHelper = require("./attr");
3
- var notEmptyAttr = attrHelper.bz_;
4
- var isEmptyAttrValue = attrHelper.bA_;
3
+ var notEmptyAttr = attrHelper.bA_;
4
+ var isEmptyAttrValue = attrHelper.bB_;
5
5
  var classHelper = require("./class-attr");
6
6
  var styleHelper = require("./style-attr");
7
7
 
@@ -5,8 +5,8 @@
5
5
 
6
6
  module.exports = attr;
7
7
 
8
- attr.bz_ = nonVoidAttr;
9
- attr.bA_ = isVoid;
8
+ attr.bA_ = nonVoidAttr;
9
+ attr.bB_ = isVoid;
10
10
  attr.a = attrAssignment;
11
11
  attr.d = escapeDoubleQuotedAttrValue;
12
12
  attr.s = escapeSingleQuotedAttrValue;
@@ -3,21 +3,21 @@ var RenderResult = require("../RenderResult");
3
3
  var attrsHelper = require("./helpers/attrs");
4
4
  var morphdom = require("./morphdom");
5
5
  var vdom = require("./vdom");
6
- var VElement = vdom.bB_;
7
- var VComment = vdom.bC_;
8
- var VDocumentFragment = vdom.bD_;
9
- var VText = vdom.bE_;
10
- var VComponent = vdom.bF_;
11
- var VFragment = vdom.bG_;
12
- var virtualizeHTML = vdom.bH_;
6
+ var VElement = vdom.bC_;
7
+ var VComment = vdom.bD_;
8
+ var VDocumentFragment = vdom.bE_;
9
+ var VText = vdom.bF_;
10
+ var VComponent = vdom.bG_;
11
+ var VFragment = vdom.bH_;
12
+ var virtualizeHTML = vdom.bI_;
13
13
 
14
14
  var EVENT_UPDATE = "update";
15
15
  var EVENT_FINISH = "finish";
16
16
 
17
17
  function State(tree) {
18
- this.bI_ = new EventEmitter();
19
- this.bJ_ = tree;
20
- this.bK_ = false;
18
+ this.bJ_ = new EventEmitter();
19
+ this.bK_ = tree;
20
+ this.bL_ = false;
21
21
  }
22
22
 
23
23
  function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
@@ -33,18 +33,18 @@ function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
33
33
  state = new State(parentNode);
34
34
  }
35
35
 
36
- this.bL_ = 1;
37
- this.bM_ = 0;
38
- this.bN_ = null;
39
- this.bO_ = parentOut;
36
+ this.bM_ = 1;
37
+ this.bN_ = 0;
38
+ this.bO_ = null;
39
+ this.bP_ = parentOut;
40
40
 
41
41
  this.data = {};
42
42
  this.A_ = state;
43
43
  this.ae_ = parentNode;
44
44
  this.global = globalData || {};
45
- this.bP_ = [parentNode];
46
- this.bQ_ = false;
47
- this.bR_ = undefined;
45
+ this.bQ_ = [parentNode];
46
+ this.bR_ = false;
47
+ this.bS_ = undefined;
48
48
  this.b_ = null;
49
49
 
50
50
  this.ac_ = null;
@@ -58,18 +58,18 @@ var proto = AsyncVDOMBuilder.prototype = {
58
58
 
59
59
  bc: function (component, key, ownerComponent) {
60
60
  var vComponent = new VComponent(component, key, ownerComponent);
61
- return this.bS_(vComponent, 0, true);
61
+ return this.bT_(vComponent, 0, true);
62
62
  },
63
63
 
64
64
  bg_: function (component, key, ownerComponent) {
65
65
  var vComponent = new VComponent(component, key, ownerComponent, true);
66
- this.bS_(vComponent, 0);
66
+ this.bT_(vComponent, 0);
67
67
  },
68
68
 
69
- bS_: function (child, childCount, pushToStack) {
70
- this.ae_.bT_(child);
69
+ bT_: function (child, childCount, pushToStack) {
70
+ this.ae_.bU_(child);
71
71
  if (pushToStack === true) {
72
- this.bP_.push(child);
72
+ this.bQ_.push(child);
73
73
  this.ae_ = child;
74
74
  }
75
75
  return childCount === 0 ? this : child;
@@ -85,7 +85,7 @@ var proto = AsyncVDOMBuilder.prototype = {
85
85
  flags,
86
86
  props
87
87
  );
88
- return this.bS_(element, childCount);
88
+ return this.bT_(element, childCount);
89
89
  },
90
90
 
91
91
  bp_: function (tagName, attrs, key, componentDef, props) {
@@ -103,7 +103,7 @@ var proto = AsyncVDOMBuilder.prototype = {
103
103
  n: function (node, component) {
104
104
  // NOTE: We do a shallow clone since we assume the node is being reused
105
105
  // and a node can only have one parent node.
106
- var clone = node.bU_();
106
+ var clone = node.bV_();
107
107
  this.node(clone);
108
108
  clone._P_ = component;
109
109
 
@@ -111,7 +111,7 @@ var proto = AsyncVDOMBuilder.prototype = {
111
111
  },
112
112
 
113
113
  node: function (node) {
114
- this.ae_.bT_(node);
114
+ this.ae_.bU_(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.ae_.bT_(new VText(text, ownerComponent));
133
+ this.ae_.bU_(new VText(text, ownerComponent));
134
134
  return this;
135
135
  },
136
136
 
@@ -165,7 +165,7 @@ var proto = AsyncVDOMBuilder.prototype = {
165
165
  flags,
166
166
  props
167
167
  );
168
- this.bS_(element, childCount, true);
168
+ this.bT_(element, childCount, true);
169
169
  return this;
170
170
  },
171
171
 
@@ -183,7 +183,7 @@ var proto = AsyncVDOMBuilder.prototype = {
183
183
 
184
184
  bf: function (key, component, preserve) {
185
185
  var fragment = new VFragment(key, component, preserve);
186
- this.bS_(fragment, null, true);
186
+ this.bT_(fragment, null, true);
187
187
  return this;
188
188
  },
189
189
 
@@ -192,7 +192,7 @@ var proto = AsyncVDOMBuilder.prototype = {
192
192
  },
193
193
 
194
194
  endElement: function () {
195
- var stack = this.bP_;
195
+ var stack = this.bQ_;
196
196
  stack.pop();
197
197
  this.ae_ = stack[stack.length - 1];
198
198
  },
@@ -200,44 +200,44 @@ var proto = AsyncVDOMBuilder.prototype = {
200
200
  end: function () {
201
201
  this.ae_ = undefined;
202
202
 
203
- var remaining = --this.bL_;
204
- var parentOut = this.bO_;
203
+ var remaining = --this.bM_;
204
+ var parentOut = this.bP_;
205
205
 
206
206
  if (remaining === 0) {
207
207
  if (parentOut) {
208
- parentOut.bV_();
208
+ parentOut.bW_();
209
209
  } else {
210
- this.bW_();
210
+ this.bX_();
211
211
  }
212
- } else if (remaining - this.bM_ === 0) {
213
- this.bX_();
212
+ } else if (remaining - this.bN_ === 0) {
213
+ this.bY_();
214
214
  }
215
215
 
216
216
  return this;
217
217
  },
218
218
 
219
- bV_: function () {
220
- var remaining = --this.bL_;
219
+ bW_: function () {
220
+ var remaining = --this.bM_;
221
221
 
222
222
  if (remaining === 0) {
223
- var parentOut = this.bO_;
223
+ var parentOut = this.bP_;
224
224
  if (parentOut) {
225
- parentOut.bV_();
225
+ parentOut.bW_();
226
226
  } else {
227
- this.bW_();
227
+ this.bX_();
228
228
  }
229
- } else if (remaining - this.bM_ === 0) {
230
- this.bX_();
229
+ } else if (remaining - this.bN_ === 0) {
230
+ this.bY_();
231
231
  }
232
232
  },
233
233
 
234
- bW_: function () {
234
+ bX_: function () {
235
235
  var state = this.A_;
236
- state.bK_ = true;
237
- state.bI_.emit(EVENT_FINISH, this.n_());
236
+ state.bL_ = true;
237
+ state.bJ_.emit(EVENT_FINISH, this.n_());
238
238
  },
239
239
 
240
- bX_: function () {
240
+ bY_: function () {
241
241
  var lastArray = this._last;
242
242
 
243
243
  var i = 0;
@@ -272,7 +272,7 @@ var proto = AsyncVDOMBuilder.prototype = {
272
272
  },
273
273
 
274
274
  beginAsync: function (options) {
275
- if (this.bQ_) {
275
+ if (this.bR_) {
276
276
  throw Error(
277
277
  "Tried to render async while in sync mode. Note: Client side await is not currently supported in re-renders (Issue: #942)."
278
278
  );
@@ -282,16 +282,16 @@ var proto = AsyncVDOMBuilder.prototype = {
282
282
 
283
283
  if (options) {
284
284
  if (options.last) {
285
- this.bM_++;
285
+ this.bN_++;
286
286
  }
287
287
  }
288
288
 
289
- this.bL_++;
289
+ this.bM_++;
290
290
 
291
- var documentFragment = this.ae_.bY_();
291
+ var documentFragment = this.ae_.bZ_();
292
292
  var asyncOut = new AsyncVDOMBuilder(this.global, documentFragment, this);
293
293
 
294
- state.bI_.emit("beginAsync", {
294
+ state.bJ_.emit("beginAsync", {
295
295
  out: asyncOut,
296
296
  parentOut: this
297
297
  });
@@ -304,7 +304,7 @@ var proto = AsyncVDOMBuilder.prototype = {
304
304
  },
305
305
 
306
306
  flush: function () {
307
- var events = this.A_.bI_;
307
+ var events = this.A_.bJ_;
308
308
 
309
309
  if (events.listenerCount(EVENT_UPDATE)) {
310
310
  events.emit(EVENT_UPDATE, new RenderResult(this));
@@ -312,22 +312,22 @@ var proto = AsyncVDOMBuilder.prototype = {
312
312
  },
313
313
 
314
314
  ak_: function () {
315
- return this.A_.bJ_;
315
+ return this.A_.bK_;
316
316
  },
317
317
 
318
318
  n_: function () {
319
- return this.bZ_ || (this.bZ_ = new RenderResult(this));
319
+ return this.c__ || (this.c__ = new RenderResult(this));
320
320
  },
321
321
 
322
322
  on: function (event, callback) {
323
323
  var state = this.A_;
324
324
 
325
- if (event === EVENT_FINISH && state.bK_) {
325
+ if (event === EVENT_FINISH && state.bL_) {
326
326
  callback(this.n_());
327
327
  } else if (event === "last") {
328
328
  this.onLast(callback);
329
329
  } else {
330
- state.bI_.on(event, callback);
330
+ state.bJ_.on(event, callback);
331
331
  }
332
332
 
333
333
  return this;
@@ -336,19 +336,19 @@ var proto = AsyncVDOMBuilder.prototype = {
336
336
  once: function (event, callback) {
337
337
  var state = this.A_;
338
338
 
339
- if (event === EVENT_FINISH && state.bK_) {
339
+ if (event === EVENT_FINISH && state.bL_) {
340
340
  callback(this.n_());
341
341
  } else if (event === "last") {
342
342
  this.onLast(callback);
343
343
  } else {
344
- state.bI_.once(event, callback);
344
+ state.bJ_.once(event, callback);
345
345
  }
346
346
 
347
347
  return this;
348
348
  },
349
349
 
350
350
  emit: function (type, arg) {
351
- var events = this.A_.bI_;
351
+ var events = this.A_.bJ_;
352
352
  switch (arguments.length) {
353
353
  case 1:
354
354
  events.emit(type);
@@ -364,17 +364,17 @@ var proto = AsyncVDOMBuilder.prototype = {
364
364
  },
365
365
 
366
366
  removeListener: function () {
367
- var events = this.A_.bI_;
367
+ var events = this.A_.bJ_;
368
368
  events.removeListener.apply(events, arguments);
369
369
  return this;
370
370
  },
371
371
 
372
372
  sync: function () {
373
- this.bQ_ = true;
373
+ this.bR_ = true;
374
374
  },
375
375
 
376
376
  isSync: function () {
377
- return this.bQ_;
377
+ return this.bR_;
378
378
  },
379
379
 
380
380
  onLast: function (callback) {
@@ -390,12 +390,12 @@ var proto = AsyncVDOMBuilder.prototype = {
390
390
  },
391
391
 
392
392
  aj_: function (host) {
393
- var node = this.bR_;
393
+ var node = this.bS_;
394
394
  if (!node) {
395
395
  var vdomTree = this.ak_();
396
396
 
397
397
  if (!host) host = this.C_;
398
- this.bR_ = node = vdomTree.bu_(host, null);
398
+ this.bS_ = node = vdomTree.bu_(host, null);
399
399
  morphdom(node, vdomTree, host, this.b_);
400
400
  }
401
401
  return node;