Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
fix(benchmark): typo in element tag names
Browse files Browse the repository at this point in the history
Doesn't affect the benchmark times, because tag name is used outside
angular template.

Closes #1220
  • Loading branch information
rkirov authored and chirayuk committed Jul 23, 2014
1 parent c5e2ed9 commit 86de17c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benchmark/web/tree.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class NgFreeTree implements ShadowRootAware {
}

Element newFreeTree(tree) {
var elt = new Element.tag('ng-fre-tree');
var elt = new Element.tag('ng-free-tree');
var root = elt.createShadowRoot();

var s = new SpanElement();
Expand All @@ -75,7 +75,7 @@ class NgFreeTree implements ShadowRootAware {
}

updateElement(root, tree) {
// Not quite acurate
// Not quite accurate
root.innerHtml = '';
root.append(newFreeTree(tree));
}
Expand Down Expand Up @@ -114,7 +114,7 @@ class NgFreeTreeScoped implements ShadowRootAware {
}

Element newFreeTree(parentScope, treeExpr) {
var elt = new Element.tag('ng-fre-tree');
var elt = new Element.tag('ng-free-tree-scoped');
var root = elt.createShadowRoot();
var scope = parentScope.createChild({});

Expand Down Expand Up @@ -147,7 +147,7 @@ class NgFreeTreeScoped implements ShadowRootAware {

Scope treeScope;
updateElement(root, tree) {
// Not quite acurate
// Not quite accurate
if (treeScope != null) {
treeScope.destroy();
}
Expand Down Expand Up @@ -178,7 +178,7 @@ class FreeTreeClass {
}

Element element() {
var elt = new Element.tag('ng-fre-tree');
var elt = new Element.tag('ng-free-tree');
var root = elt.createShadowRoot();
var scope = parentScope.createChild(this);

Expand Down Expand Up @@ -232,7 +232,7 @@ class NgFreeTreeClass implements ShadowRootAware {

var treeScope;
updateElement(root, tree) {
// Not quite acurate
// Not quite accurate
if (treeScope != null) {
treeScope.destroy();
}
Expand Down

0 comments on commit 86de17c

Please sign in to comment.