i have error : $clear is not defined..what’s wrong in this code?? I use Mootools 1.4.5:
var test = new Class({
initialize: function(){},
init: function(){
var timer;
$$('#list tr').addEvents({
'click': function(){
$clear(timer);
timer = (function(){
console.log('clicked');
}).delay(200, this);
},
'dblclick': function(){
$clear(timer);
console.log('dblclicked');
}
});
}
});
Thanks!
$clearis deprecated since it just replicated the built inclearTimeoutfunction. I would guess it has now been removed.edit: deprecated functions are only included in the “with compatibility” version of Mootools 1.45