only null hasOwnProperty

This commit is contained in:
Adam Bradley
2015-05-13 21:53:11 -05:00
parent 32413617e2
commit aef4f23d0a

View File

@ -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;
}
}
}