Here is the original code, I'm still trying to get it switched to
mootools 1.3
var remove = this.remove.create({
bind: this,
arguments: [item],
delay: 10
});
this.items.push(item.addEvent('click', remove));
if (this.options.duration) {
var over = false;
var trigger = (function() {
trigger = null;
if (!over) remove();
}).delay(this.options.duration);
item.addEvents({
mouseover: function() {
over = true;
},
mouseout: function() {
over = false;
if (!trigger) remove();
}
});
}
You can see it in action here http://jsfiddle.net/DrTQK/3/
I'm still having trouble with the remove, seems to be showing the
notification, but disappears quick, if you make the time longer, then
the click doesn't fire.