
committed by
Victor Berchet

parent
61002733bc
commit
c377e80670
@ -11,14 +11,14 @@
|
||||
</template>
|
||||
</span>
|
||||
</template>
|
||||
<script>
|
||||
Polymer({
|
||||
is: 'binary-tree',
|
||||
properties: {
|
||||
data: Object
|
||||
},
|
||||
leftTree: null,
|
||||
rightTree: null
|
||||
});
|
||||
</script>
|
||||
</dom-module>
|
||||
<script>
|
||||
Polymer({
|
||||
is: 'binary-tree',
|
||||
properties: {
|
||||
data: Object
|
||||
},
|
||||
leftTree: null,
|
||||
rightTree: null
|
||||
});
|
||||
</script>
|
||||
|
@ -1,7 +1,6 @@
|
||||
import {bindAction} from '@angular/platform-browser/testing/benchmark_util';
|
||||
|
||||
import {buildTree, emptyTree} from '../app/util';
|
||||
import {
|
||||
bindAction
|
||||
} from '@angular/platform-browser/testing/benchmark_util';
|
||||
|
||||
declare var Polymer: any;
|
||||
|
||||
@ -9,13 +8,9 @@ export function main() {
|
||||
const rootEl: any = document.querySelector('binary-tree');
|
||||
rootEl.data = emptyTree();
|
||||
|
||||
function destroyDom() {
|
||||
rootEl.data = emptyTree();
|
||||
}
|
||||
function destroyDom() { rootEl.data = emptyTree(); }
|
||||
|
||||
function createDom() {
|
||||
rootEl.data = buildTree();
|
||||
}
|
||||
function createDom() { rootEl.data = buildTree(); }
|
||||
|
||||
bindAction('#destroyDom', destroyDom);
|
||||
bindAction('#createDom', createDom);
|
||||
|
Reference in New Issue
Block a user