this._dropdownMenus[instance].close();
}
}
+ },
+
+ getOpenDropdown: function () {
+ for (var instance in this._dropdownMenus) {
+ if (this._dropdownMenus.hasOwnProperty(instance)) {
+ if (this._dropdownMenus[instance].isOpen()) {
+ return this._dropdownMenus[instance];
+ }
+ }
+ }
+
+ return null;
}
};
}
}).bind(this));
}).bind(this));
+ },
+
+ close: function (event) {
+ var dropdown = WCF.Dropdown.Interactive.Handler.getOpenDropdown();
+ if (dropdown) {
+ event.preventDefault();
+ event.stopPropagation();
+
+ dropdown.close();
+ }
+ else {
+ UiPageMenuUser._super.prototype.close.call(this, event);
+ }
}
});