mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +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