|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
284 bytes
|
| Line | |
|---|
| 1 | function removeFunction(id) {
|
|---|
| 2 | return function() {
|
|---|
| 3 | var parent = this.parentNode;
|
|---|
| 4 | for (var i in this.__transition) if (+i !== id) return;
|
|---|
| 5 | if (parent) parent.removeChild(this);
|
|---|
| 6 | };
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | export default function() {
|
|---|
| 10 | return this.on("end.remove", removeFunction(this._id));
|
|---|
| 11 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.