' +
+ var a = compile('
');
- var scope = new Scope();
- doc.data('scope', scope);
- var binder = new Binder(doc[0], new WidgetFactory(), new MockLocation());
- binder.compile();
- scope.set('model', [{name:'a', item:['a1', 'a2']}, {name:'b', item:['b1', 'b2']}]);
- binder.updateView();
+ a.scope.set('model', [{name:'a', item:['a1', 'a2']}, {name:'b', item:['b1', 'b2']}]);
+ a.binder.updateView();
assertEquals(
//'<#comment>#comment>'+
@@ -594,88 +557,71 @@ BinderTest.prototype.testNestedRepeater = function() {
'<#comment>#comment>'+
'
'+
'
'+
- '
', doc.sortedHtml());
+ '', a.node.sortedHtml());
};
BinderTest.prototype.testRadioButtonGetsPrefixed = function () {
- var doc = html('