marko 5.37.2 → 5.37.4

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 (91) hide show
  1. package/dist/compiler/index.js +11 -11
  2. package/dist/core-tags/components/init-components-tag.js +4 -4
  3. package/dist/core-tags/components/preferred-script-location-tag.js +2 -2
  4. package/dist/core-tags/core/__flush_here_and_after__.js +1 -1
  5. package/dist/core-tags/core/await/AsyncValue.js +21 -21
  6. package/dist/core-tags/core/await/renderer.js +24 -24
  7. package/dist/core-tags/core/await/reorderer-renderer.js +6 -6
  8. package/dist/node-require/browser-refresh.js +1 -18
  9. package/dist/node-require/index.js +7 -7
  10. package/dist/node_modules/@internal/components-beginComponent/index-browser.js +5 -5
  11. package/dist/node_modules/@internal/components-beginComponent/index.js +12 -12
  12. package/dist/node_modules/@internal/components-define-widget-legacy/index-browser.js +99 -99
  13. package/dist/node_modules/@internal/components-define-widget-legacy/index.js +3 -3
  14. package/dist/node_modules/@internal/components-endComponent/index.js +3 -3
  15. package/dist/node_modules/@internal/components-entry/index-browser.js +2 -2
  16. package/dist/node_modules/@internal/components-entry/index.js +29 -29
  17. package/dist/node_modules/@internal/components-entry-legacy/index-browser.js +13 -13
  18. package/dist/node_modules/@internal/components-entry-legacy/index.js +1 -1
  19. package/dist/node_modules/@internal/components-registry/index-browser.js +102 -102
  20. package/dist/node_modules/@internal/components-registry/index.js +2 -2
  21. package/dist/node_modules/@internal/components-util/index-browser.js +20 -20
  22. package/dist/node_modules/@internal/components-util/index.js +20 -24
  23. package/dist/node_modules/@internal/create-readable/index-browser.js +1 -1
  24. package/dist/node_modules/@internal/create-readable/index.js +9 -9
  25. package/dist/node_modules/@internal/preserve-tag/index-browser.js +8 -8
  26. package/dist/node_modules/@internal/preserve-tag/index.js +6 -6
  27. package/dist/node_modules/@internal/set-immediate/index-browser.js +2 -2
  28. package/dist/node_modules/@internal/set-immediate/index-worker.js +3 -3
  29. package/dist/node_modules/@internal/set-immediate/index.js +3 -3
  30. package/dist/runtime/RenderResult.js +24 -24
  31. package/dist/runtime/components/Component.js +163 -163
  32. package/dist/runtime/components/ComponentDef.js +34 -34
  33. package/dist/runtime/components/ComponentsContext.js +20 -20
  34. package/dist/runtime/components/GlobalComponentsContext.js +4 -4
  35. package/dist/runtime/components/KeySequence.js +3 -3
  36. package/dist/runtime/components/ServerComponent.js +17 -17
  37. package/dist/runtime/components/State.js +28 -28
  38. package/dist/runtime/components/attach-detach.js +8 -8
  39. package/dist/runtime/components/defineComponent.js +5 -5
  40. package/dist/runtime/components/dom-data.js +6 -6
  41. package/dist/runtime/components/event-delegation.js +10 -10
  42. package/dist/runtime/components/legacy/defineComponent-legacy.js +1 -1
  43. package/dist/runtime/components/legacy/defineRenderer-legacy.js +25 -25
  44. package/dist/runtime/components/legacy/dependencies/index.js +10 -10
  45. package/dist/runtime/components/legacy/renderer-legacy.js +56 -56
  46. package/dist/runtime/components/renderer.js +45 -45
  47. package/dist/runtime/components/update-manager.js +4 -4
  48. package/dist/runtime/createOut.js +1 -1
  49. package/dist/runtime/dom-insert.js +5 -5
  50. package/dist/runtime/helpers/_change-case.js +2 -2
  51. package/dist/runtime/helpers/dynamic-tag.js +33 -33
  52. package/dist/runtime/helpers/render-tag.js +1 -1
  53. package/dist/runtime/helpers/serialize-noop.js +2 -2
  54. package/dist/runtime/helpers/style-value.js +1 -1
  55. package/dist/runtime/helpers/tags-compat/runtime-dom.js +35 -35
  56. package/dist/runtime/helpers/tags-compat/runtime-html.js +16 -16
  57. package/dist/runtime/html/AsyncStream.js +28 -28
  58. package/dist/runtime/html/BufferedWriter.js +2 -2
  59. package/dist/runtime/html/StringWriter.js +2 -2
  60. package/dist/runtime/html/helpers/_dynamic-attr.js +2 -2
  61. package/dist/runtime/html/helpers/attr.js +11 -11
  62. package/dist/runtime/html/helpers/attrs.js +6 -6
  63. package/dist/runtime/html/helpers/data-marko.js +6 -6
  64. package/dist/runtime/html/helpers/escape-quotes.js +2 -2
  65. package/dist/runtime/html/helpers/escape-xml.js +1 -1
  66. package/dist/runtime/html/helpers/merge-attrs.js +11 -11
  67. package/dist/runtime/html/helpers/props-script.js +1 -1
  68. package/dist/runtime/html/index.js +2 -2
  69. package/dist/runtime/renderable.js +5 -5
  70. package/dist/runtime/vdom/AsyncVDOMBuilder.js +100 -100
  71. package/dist/runtime/vdom/VComment.js +7 -7
  72. package/dist/runtime/vdom/VComponent.js +5 -5
  73. package/dist/runtime/vdom/VDocumentFragment.js +8 -8
  74. package/dist/runtime/vdom/VElement.js +52 -52
  75. package/dist/runtime/vdom/VFragment.js +9 -9
  76. package/dist/runtime/vdom/VNode.js +34 -34
  77. package/dist/runtime/vdom/VText.js +8 -8
  78. package/dist/runtime/vdom/helpers/attrs.js +6 -6
  79. package/dist/runtime/vdom/helpers/const-element.js +3 -3
  80. package/dist/runtime/vdom/hot-reload.js +20 -20
  81. package/dist/runtime/vdom/index.js +2 -2
  82. package/dist/runtime/vdom/morphdom/fragment.js +10 -10
  83. package/dist/runtime/vdom/morphdom/helpers.js +5 -5
  84. package/dist/runtime/vdom/morphdom/index.js +81 -81
  85. package/dist/runtime/vdom/vdom.js +15 -15
  86. package/dist/taglib/index.js +6 -6
  87. package/dist/translator/index.js +2 -1
  88. package/dist/translator/util/get-component-files.js +1 -1
  89. package/docs/typescript.md +1 -1
  90. package/package.json +2 -2
  91. package/src/translator/index.js +1 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  // eslint-disable-next-line no-constant-binary-expression
4
- var complain = "MARKO_DEBUG" && require("complain");
4
+
5
5
  var dynamicAttrHelper = require("./_dynamic-attr");
6
6
 
7
7
  module.exports = function attrs(arg) {
@@ -14,11 +14,11 @@ module.exports = function attrs(arg) {
14
14
  return result;
15
15
  case "string":
16
16
  // eslint-disable-next-line no-constant-condition
17
- if ("MARKO_DEBUG") {
18
- complain(
19
- "Passing a string as a dynamic attribute value is deprecated - More details: https://github.com/marko-js/marko/wiki/Deprecation:-String-as-dynamic-attribute-value"
20
- );
21
- }
17
+
18
+
19
+
20
+
21
+
22
22
  return arg;
23
23
  default:
24
24
  return "";
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
 
3
3
  var escapeQuoteHelpers = require("./escape-quotes");
4
- var escapeSingleQuotes = escapeQuoteHelpers.___escapeSingleQuotes;
5
- var escapeDoubleQuotes = escapeQuoteHelpers.___escapeDoubleQuotes;
4
+ var escapeSingleQuotes = escapeQuoteHelpers.by_;
5
+ var escapeDoubleQuotes = escapeQuoteHelpers.n_;
6
6
  var FLAG_WILL_RERENDER_IN_BROWSER = 1;
7
7
  // var FLAG_HAS_RENDER_BODY = 2;
8
8
 
9
9
  module.exports = function dataMarko(out, componentDef, props, key) {
10
10
  var result = "";
11
11
  var willNotRerender =
12
- out.___components.___isPreserved ||
13
- componentDef.___renderBoundary &&
14
- (componentDef.___flags & FLAG_WILL_RERENDER_IN_BROWSER) === 0;
12
+ out.b_.w_ ||
13
+ componentDef.u_ &&
14
+ (componentDef.v_ & FLAG_WILL_RERENDER_IN_BROWSER) === 0;
15
15
 
16
16
  if (willNotRerender) {
17
17
  if (props) {
@@ -26,7 +26,7 @@ module.exports = function dataMarko(out, componentDef, props, key) {
26
26
  result +=
27
27
  ' data-marko-key="' +
28
28
  escapeDoubleQuotes(
29
- componentDef.___nextKey(key) + " " + componentDef.id
29
+ componentDef.aO_(key) + " " + componentDef.id
30
30
  ) +
31
31
  '"';
32
32
  }
@@ -4,9 +4,9 @@ exports.d = function (value) {
4
4
  return escapeDoubleQuotes(value + "", 0);
5
5
  };
6
6
 
7
- exports.___escapeDoubleQuotes = escapeDoubleQuotes;
7
+ exports.n_ = escapeDoubleQuotes;
8
8
 
9
- exports.___escapeSingleQuotes = escapeSingleQuotes;
9
+ exports.by_ = escapeSingleQuotes;
10
10
 
11
11
  function escapeSingleQuotes(value, startPos) {
12
12
  return escapeQuote(value, startPos, "'", "'");
@@ -18,4 +18,4 @@ module.exports.x = function (value) {
18
18
  return escape(value + "");
19
19
  };
20
20
 
21
- exports.___escapeXML = escape;
21
+ exports.bs_ = escape;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  // eslint-disable-next-line no-constant-binary-expression
4
- var complain = "MARKO_DEBUG" && require("complain");
4
+
5
5
  var dynamicAttrHelper = require("./_dynamic-attr");
6
6
 
7
7
  /**
@@ -16,11 +16,11 @@ module.exports = function mergeAttrs() {
16
16
 
17
17
  if (typeof last === "string") {
18
18
  // eslint-disable-next-line no-constant-condition
19
- if ("MARKO_DEBUG") {
20
- complain(
21
- "Passing a string as dynamic attributes ('<div ${string}>' or '<div ...string>') is deprecated, use an object instead."
22
- );
23
- }
19
+
20
+
21
+
22
+
23
+
24
24
 
25
25
  result += last[0] === " " ? last : " " + last;
26
26
  } else {
@@ -34,11 +34,11 @@ module.exports = function mergeAttrs() {
34
34
  var arg = arguments[--i];
35
35
  if (typeof arg === "string") {
36
36
  // eslint-disable-next-line no-constant-condition
37
- if ("MARKO_DEBUG") {
38
- complain(
39
- "Passing a string as dynamic attributes ('<div ${string}>' or '<div ...string>') is deprecated, use an object instead."
40
- );
41
- }
37
+
38
+
39
+
40
+
41
+
42
42
 
43
43
  result += arg[0] === " " ? arg : " " + arg;
44
44
  } else {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var escapeDoubleQuotes = require("./escape-quotes").___escapeDoubleQuotes;
3
+ var escapeDoubleQuotes = require("./escape-quotes").n_;
4
4
  var escapeScript = require("./escape-script-placeholder");
5
5
  var assignPropsFunction = `
6
6
  function ap_(p) {
@@ -13,13 +13,13 @@ exports.t = function createTemplate(typeName) {
13
13
  };
14
14
 
15
15
  function Template(typeName) {
16
- this.path = this.___typeName = typeName;
16
+ this.path = this.S_ = typeName;
17
17
  }
18
18
 
19
19
  Template.prototype.stream = require("@internal/create-readable");
20
20
 
21
21
  var AsyncStream = require("./AsyncStream");
22
- require("../createOut").___setCreateOut(
22
+ require("../createOut").bf_(
23
23
  Template.prototype.createOut = function createOut(
24
24
  globalData,
25
25
  writer,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  var extend = require("raptor-util/extend");
4
- var setImmediate = require("@internal/set-immediate").___setImmediate;
4
+ var setImmediate = require("@internal/set-immediate")._k_;
5
5
  var defaultCreateOut = require("./createOut");
6
6
 
7
7
  function safeRender(renderFunc, finalData, finalOut, shouldEnd) {
@@ -73,7 +73,7 @@ module.exports = function (target, renderer) {
73
73
  }
74
74
 
75
75
  render(localData, out);
76
- return out.___getResult();
76
+ return out.o_();
77
77
  },
78
78
 
79
79
  /**
@@ -148,7 +148,7 @@ module.exports = function (target, renderer) {
148
148
  var finalData;
149
149
  var globalData;
150
150
  var render = renderFunc || this._;
151
- var shouldBuffer = this.___shouldBuffer;
151
+ var shouldBuffer = this._W_;
152
152
  var shouldEnd = true;
153
153
 
154
154
  if (data) {
@@ -160,7 +160,7 @@ module.exports = function (target, renderer) {
160
160
  finalData = {};
161
161
  }
162
162
 
163
- if (out && out.___isOut) {
163
+ if (out && out.bu_) {
164
164
  finalOut = out;
165
165
  shouldEnd = false;
166
166
  extend(out.global, globalData);
@@ -179,7 +179,7 @@ module.exports = function (target, renderer) {
179
179
  if (callback) {
180
180
  finalOut.
181
181
  on("finish", function () {
182
- callback(null, finalOut.___getResult(), finalOut);
182
+ callback(null, finalOut.o_(), finalOut);
183
183
  }).
184
184
  once("error", callback);
185
185
  }
@@ -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.___VElement;
7
- var VComment = vdom.___VComment;
8
- var VDocumentFragment = vdom.___VDocumentFragment;
9
- var VText = vdom.___VText;
10
- var VComponent = vdom.___VComponent;
11
- var VFragment = vdom.___VFragment;
12
- var virtualizeHTML = vdom.___virtualizeHTML;
6
+ var VElement = vdom.bz_;
7
+ var VComment = vdom.bA_;
8
+ var VDocumentFragment = vdom.bB_;
9
+ var VText = vdom.bC_;
10
+ var VComponent = vdom.bD_;
11
+ var VFragment = vdom.bE_;
12
+ var virtualizeHTML = vdom.bF_;
13
13
 
14
14
  var EVENT_UPDATE = "update";
15
15
  var EVENT_FINISH = "finish";
16
16
 
17
17
  function State(tree) {
18
- this.___events = new EventEmitter();
19
- this.___tree = tree;
20
- this.___finished = false;
18
+ this.bG_ = new EventEmitter();
19
+ this.bH_ = tree;
20
+ this.bI_ = false;
21
21
  }
22
22
 
23
23
  function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
@@ -28,49 +28,49 @@ function AsyncVDOMBuilder(globalData, parentNode, parentOut) {
28
28
  var state;
29
29
 
30
30
  if (parentOut) {
31
- state = parentOut.___state;
31
+ state = parentOut.A_;
32
32
  } else {
33
33
  state = new State(parentNode);
34
34
  }
35
35
 
36
- this.___remaining = 1;
37
- this.___lastCount = 0;
38
- this.___last = null;
39
- this.___parentOut = parentOut;
36
+ this.bJ_ = 1;
37
+ this.bK_ = 0;
38
+ this.bL_ = null;
39
+ this.bM_ = parentOut;
40
40
 
41
41
  this.data = {};
42
- this.___state = state;
43
- this.___parent = parentNode;
42
+ this.A_ = state;
43
+ this.ac_ = parentNode;
44
44
  this.global = globalData || {};
45
- this.___stack = [parentNode];
46
- this.___sync = false;
47
- this.___vnode = undefined;
48
- this.___components = null;
49
-
50
- this.___assignedComponentDef = null;
51
- this.___assignedKey = null;
52
- this.___assignedCustomEvents = null;
45
+ this.bN_ = [parentNode];
46
+ this.bO_ = false;
47
+ this.bP_ = undefined;
48
+ this.b_ = null;
49
+
50
+ this.aa_ = null;
51
+ this.ab_ = null;
52
+ this.bd_ = null;
53
53
  }
54
54
 
55
55
  var proto = AsyncVDOMBuilder.prototype = {
56
- ___isOut: true,
57
- ___host: typeof document === "object" && document,
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
- return this.___beginNode(vComponent, 0, true);
61
+ return this.bQ_(vComponent, 0, true);
62
62
  },
63
63
 
64
- ___preserveComponent: function (component, key, ownerComponent) {
64
+ be_: function (component, key, ownerComponent) {
65
65
  var vComponent = new VComponent(component, key, ownerComponent, true);
66
- this.___beginNode(vComponent, 0);
66
+ this.bQ_(vComponent, 0);
67
67
  },
68
68
 
69
- ___beginNode: function (child, childCount, pushToStack) {
70
- this.___parent.___appendChild(child);
69
+ bQ_: function (child, childCount, pushToStack) {
70
+ this.ac_.bR_(child);
71
71
  if (pushToStack === true) {
72
- this.___stack.push(child);
73
- this.___parent = child;
72
+ this.bN_.push(child);
73
+ this.ac_ = child;
74
74
  }
75
75
  return childCount === 0 ? this : child;
76
76
  },
@@ -85,15 +85,15 @@ var proto = AsyncVDOMBuilder.prototype = {
85
85
  flags,
86
86
  props
87
87
  );
88
- return this.___beginNode(element, childCount);
88
+ return this.bQ_(element, childCount);
89
89
  },
90
90
 
91
- ___elementDynamic: function (tagName, attrs, key, componentDef, props) {
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.___component,
96
+ componentDef.t_,
97
97
  0,
98
98
  0,
99
99
  props
@@ -103,15 +103,15 @@ 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.___cloneNode();
106
+ var clone = node.bS_();
107
107
  this.node(clone);
108
- clone.___ownerComponent = component;
108
+ clone._N_ = component;
109
109
 
110
110
  return this;
111
111
  },
112
112
 
113
113
  node: function (node) {
114
- this.___parent.___appendChild(node);
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.___parent.___appendChild(new VText(text, ownerComponent));
133
+ this.ac_.bR_(new VText(text, ownerComponent));
134
134
  return this;
135
135
  },
136
136
 
@@ -165,16 +165,16 @@ var proto = AsyncVDOMBuilder.prototype = {
165
165
  flags,
166
166
  props
167
167
  );
168
- this.___beginNode(element, childCount, true);
168
+ this.bQ_(element, childCount, true);
169
169
  return this;
170
170
  },
171
171
 
172
- ___beginElementDynamic: function (tagName, attrs, key, componentDef, props) {
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.___component,
177
+ componentDef.t_,
178
178
  0,
179
179
  0,
180
180
  props
@@ -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.___beginNode(fragment, null, true);
186
+ this.bQ_(fragment, null, true);
187
187
  return this;
188
188
  },
189
189
 
@@ -192,52 +192,52 @@ var proto = AsyncVDOMBuilder.prototype = {
192
192
  },
193
193
 
194
194
  endElement: function () {
195
- var stack = this.___stack;
195
+ var stack = this.bN_;
196
196
  stack.pop();
197
- this.___parent = stack[stack.length - 1];
197
+ this.ac_ = stack[stack.length - 1];
198
198
  },
199
199
 
200
200
  end: function () {
201
- this.___parent = undefined;
201
+ this.ac_ = undefined;
202
202
 
203
- var remaining = --this.___remaining;
204
- var parentOut = this.___parentOut;
203
+ var remaining = --this.bJ_;
204
+ var parentOut = this.bM_;
205
205
 
206
206
  if (remaining === 0) {
207
207
  if (parentOut) {
208
- parentOut.___handleChildDone();
208
+ parentOut.bT_();
209
209
  } else {
210
- this.___doFinish();
210
+ this.bU_();
211
211
  }
212
- } else if (remaining - this.___lastCount === 0) {
213
- this.___emitLast();
212
+ } else if (remaining - this.bK_ === 0) {
213
+ this.bV_();
214
214
  }
215
215
 
216
216
  return this;
217
217
  },
218
218
 
219
- ___handleChildDone: function () {
220
- var remaining = --this.___remaining;
219
+ bT_: function () {
220
+ var remaining = --this.bJ_;
221
221
 
222
222
  if (remaining === 0) {
223
- var parentOut = this.___parentOut;
223
+ var parentOut = this.bM_;
224
224
  if (parentOut) {
225
- parentOut.___handleChildDone();
225
+ parentOut.bT_();
226
226
  } else {
227
- this.___doFinish();
227
+ this.bU_();
228
228
  }
229
- } else if (remaining - this.___lastCount === 0) {
230
- this.___emitLast();
229
+ } else if (remaining - this.bK_ === 0) {
230
+ this.bV_();
231
231
  }
232
232
  },
233
233
 
234
- ___doFinish: function () {
235
- var state = this.___state;
236
- state.___finished = true;
237
- state.___events.emit(EVENT_FINISH, this.___getResult());
234
+ bU_: function () {
235
+ var state = this.A_;
236
+ state.bI_ = true;
237
+ state.bG_.emit(EVENT_FINISH, this.o_());
238
238
  },
239
239
 
240
- ___emitLast: function () {
240
+ bV_: function () {
241
241
  var lastArray = this._last;
242
242
 
243
243
  var i = 0;
@@ -272,26 +272,26 @@ var proto = AsyncVDOMBuilder.prototype = {
272
272
  },
273
273
 
274
274
  beginAsync: function (options) {
275
- if (this.___sync) {
275
+ if (this.bO_) {
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
  );
279
279
  }
280
280
 
281
- var state = this.___state;
281
+ var state = this.A_;
282
282
 
283
283
  if (options) {
284
284
  if (options.last) {
285
- this.___lastCount++;
285
+ this.bK_++;
286
286
  }
287
287
  }
288
288
 
289
- this.___remaining++;
289
+ this.bJ_++;
290
290
 
291
- var documentFragment = this.___parent.___appendDocumentFragment();
291
+ var documentFragment = this.ac_.bW_();
292
292
  var asyncOut = new AsyncVDOMBuilder(this.global, documentFragment, this);
293
293
 
294
- state.___events.emit("beginAsync", {
294
+ state.bG_.emit("beginAsync", {
295
295
  out: asyncOut,
296
296
  parentOut: this
297
297
  });
@@ -304,51 +304,51 @@ var proto = AsyncVDOMBuilder.prototype = {
304
304
  },
305
305
 
306
306
  flush: function () {
307
- var events = this.___state.___events;
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
- ___getOutput: function () {
315
- return this.___state.___tree;
314
+ ai_: function () {
315
+ return this.A_.bH_;
316
316
  },
317
317
 
318
- ___getResult: function () {
319
- return this.___result || (this.___result = new RenderResult(this));
318
+ o_: function () {
319
+ return this.bX_ || (this.bX_ = new RenderResult(this));
320
320
  },
321
321
 
322
322
  on: function (event, callback) {
323
- var state = this.___state;
323
+ var state = this.A_;
324
324
 
325
- if (event === EVENT_FINISH && state.___finished) {
326
- callback(this.___getResult());
325
+ if (event === EVENT_FINISH && state.bI_) {
326
+ callback(this.o_());
327
327
  } else if (event === "last") {
328
328
  this.onLast(callback);
329
329
  } else {
330
- state.___events.on(event, callback);
330
+ state.bG_.on(event, callback);
331
331
  }
332
332
 
333
333
  return this;
334
334
  },
335
335
 
336
336
  once: function (event, callback) {
337
- var state = this.___state;
337
+ var state = this.A_;
338
338
 
339
- if (event === EVENT_FINISH && state.___finished) {
340
- callback(this.___getResult());
339
+ if (event === EVENT_FINISH && state.bI_) {
340
+ callback(this.o_());
341
341
  } else if (event === "last") {
342
342
  this.onLast(callback);
343
343
  } else {
344
- state.___events.once(event, callback);
344
+ state.bG_.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.___state.___events;
351
+ var events = this.A_.bG_;
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.___state.___events;
367
+ var events = this.A_.bG_;
368
368
  events.removeListener.apply(events, arguments);
369
369
  return this;
370
370
  },
371
371
 
372
372
  sync: function () {
373
- this.___sync = true;
373
+ this.bO_ = true;
374
374
  },
375
375
 
376
376
  isSync: function () {
377
- return this.___sync;
377
+ return this.bO_;
378
378
  },
379
379
 
380
380
  onLast: function (callback) {
@@ -389,20 +389,20 @@ var proto = AsyncVDOMBuilder.prototype = {
389
389
  return this;
390
390
  },
391
391
 
392
- ___getNode: function (host) {
393
- var node = this.___vnode;
392
+ ah_: function (host) {
393
+ var node = this.bP_;
394
394
  if (!node) {
395
- var vdomTree = this.___getOutput();
395
+ var vdomTree = this.ai_();
396
396
 
397
- if (!host) host = this.___host;
398
- this.___vnode = node = vdomTree.___actualize(host, null);
399
- morphdom(node, vdomTree, host, this.___components);
397
+ if (!host) host = this.C_;
398
+ this.bP_ = node = vdomTree.bp_(host, null);
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.___getNode(host);
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.___assignedComponentDef = componentDef;
445
- this.___assignedKey = key;
446
- this.___assignedCustomEvents = customEvents;
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.___endElement = proto.endElement;
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
 
@@ -2,20 +2,20 @@
2
2
  var inherit = require("raptor-util/inherit");
3
3
 
4
4
  function VComment(value, ownerComponent) {
5
- this.___VNode(-1 /* no children */, ownerComponent);
6
- this.___nodeValue = value;
5
+ this.bY_(-1 /* no children */, ownerComponent);
6
+ this.bZ_ = value;
7
7
  }
8
8
 
9
9
  VComment.prototype = {
10
- ___nodeType: 8,
10
+ c__: 8,
11
11
 
12
- ___actualize: function (host) {
13
- var nodeValue = this.___nodeValue;
12
+ bp_: function (host) {
13
+ var nodeValue = this.bZ_;
14
14
  return (host.ownerDocument || host).createComment(nodeValue);
15
15
  },
16
16
 
17
- ___cloneNode: function () {
18
- return new VComment(this.___nodeValue);
17
+ bS_: function () {
18
+ return new VComment(this.bZ_);
19
19
  }
20
20
  };
21
21
 
@@ -2,14 +2,14 @@
2
2
  var VNode = require("./VNode");
3
3
 
4
4
  function VComponent(component, key, ownerComponent, preserve) {
5
- this.___VNode(null /* childCount */, ownerComponent);
6
- this.___key = key;
7
- this.___component = component;
8
- this.___preserve = preserve;
5
+ this.bY_(null /* childCount */, ownerComponent);
6
+ this.ca_ = key;
7
+ this.t_ = component;
8
+ this.ae_ = preserve;
9
9
  }
10
10
 
11
11
  VComponent.prototype = {
12
- ___nodeType: 2
12
+ c__: 2
13
13
  };
14
14
 
15
15
  inherit(VComponent, VNode);