mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
only null hasOwnProperty
This commit is contained in:
@ -94,8 +94,10 @@ export class NavItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// just to help prevent any possible memory leaks
|
// just to help prevent any possible memory leaks
|
||||||
for (let prop in this) {
|
for (let name in this) {
|
||||||
this[prop] = null;
|
if (this.hasOwnProperty(name)) {
|
||||||
|
this[name] = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user