mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 13:51:53 +02:00
11 lines
284 B
JavaScript
11 lines
284 B
JavaScript
function removeFunction(id) {
|
|
return function() {
|
|
var parent = this.parentNode;
|
|
for (var i in this.__transition) if (+i !== id) return;
|
|
if (parent) parent.removeChild(this);
|
|
};
|
|
}
|
|
|
|
export default function() {
|
|
return this.on("end.remove", removeFunction(this._id));
|
|
}
|