Commit 413444d4 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes sonar warnings about classes being used before being declared in pulldown.js

parent 2df59d54
......@@ -25,6 +25,9 @@
* for an example see Menu.prototype.config
*/
var Menu = Class.create();
var MenuContainer = Class.create();
var MenuItem = Class.create();
Menu.prototype = {
initialize: function(idOrElement, name, customConfigFunction) {
......@@ -50,7 +53,6 @@ Menu.prototype = {
}
var MenuContainer = Class.create();
MenuContainer.prototype = {
initialize: function(idOrElement, parent) {
this.type = "menuContainer";
......@@ -177,9 +179,6 @@ MenuContainer.prototype = {
}
var MenuItem = Class.create();
Object.extend(Object.extend(MenuItem.prototype, MenuContainer.prototype), {
initialize: function(idOrElement, parent) {
var menuItem = this;
......@@ -232,10 +231,8 @@ Object.extend(Object.extend(MenuItem.prototype, MenuContainer.prototype), {
}
});
var menu;
function configMenu() {
this.closeDelayTime = 300;
}
......@@ -244,5 +241,4 @@ function initMenu() {
menu = new Menu('root', 'menu', configMenu);
}
Event.observe(window, 'load', initMenu, false);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment