[REM] #events can't be a function anymore
bzr revid: xmo@openerp.com-20120725091331-jvhgyf427cuxbwl4
This commit is contained in:
parent
3235ed8a18
commit
0310d5ae73
|
@ -197,17 +197,6 @@ $(document).ready(function () {
|
|||
ok(a[i], "should pass test " + i);
|
||||
}
|
||||
});
|
||||
test('delegate(Function)', function () {
|
||||
var clicked = false, fn = function () {
|
||||
return { 'click li': function () { clicked = true; } }; };
|
||||
var w = new (instance.web.Widget.extend({
|
||||
template: 'test.widget.template',
|
||||
events: fn
|
||||
}));
|
||||
w.renderElement();
|
||||
w.$('li:first').click();
|
||||
ok(clicked, "should accept #events to be a function");
|
||||
});
|
||||
test('undelegate', function () {
|
||||
var clicked = false, newclicked = false;
|
||||
var w = new (instance.web.Widget.extend({
|
||||
|
|
Loading…
Reference in New Issue