jslint does not like names that begin with _
also it complains when you do not filter
a for in statement with a hasOwnProperty(property) as first
if statement
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
try {
doc = this.getDoc();
if (doc) {
+ /*jslint nomen: true*/
Ext.get(doc).un(this._docListeners);
- if (destroying) {
+ /*jslint nomen: false*/
+ if (destroying && doc.hasOwnProperty) {
for (prop in doc) {
- if (doc.hasOwnProperty && doc.hasOwnProperty(prop)) {
+ if (doc.hasOwnProperty(prop)) {
delete doc[prop];
}
}
// the event reaches listeners on elements like the document body. The effected
// mechanisms that depend on this bubbling behavior are listed to the right
// of the event.
+ /*jslint nomen: true*/
Ext.get(doc).on(
me._docListeners = {
mousedown: fn, // menu dismisal (MenuManager) and Window onMouseDown (toFront)
scope: me
}
);
+ /*jslint nomen: false*/
} catch(e) {
// cannot do this xss
}