mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +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
|
||||
for (let prop in this) {
|
||||
this[prop] = null;
|
||||
for (let name in this) {
|
||||
if (this.hasOwnProperty(name)) {
|
||||
this[name] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user