Browse files

Change requires and little changes

  • Loading branch information...
1 parent 78f8143 commit 50a8bd0247a34bff8dd7cc1912306fce4ba15ab4 @arian committed Jan 30, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/MooDropMenu.js
View
6 Source/MooDropMenu.js
@@ -8,7 +8,7 @@ authors:
- Arian Stolwijk
requires:
-- core/1.2.4: '*'
+ core/1.2.4: [Class.Extras,Element.Style]
provides: [MooDropMenu,Element.MooDropMenu]
@@ -72,7 +72,7 @@ var MooDropMenu = new Class({
}
else {
level = 0;
- this.menu = $(menu);
+ this.menu = document.id(menu);
}
// grab all of the menus children - LI's in this case
@@ -97,7 +97,7 @@ var MooDropMenu = new Class({
/* So you can do like this $('nav').MooDropMenu(); or even $('nav').MooDropMenu().setStyle('border',1); */
Element.implement({
MooDropMenu: function (options){
- new MooDropMenu(this,options);
+ this.store('MooDropMenu',new MooDropMenu(this,options));
return this;
}
});

0 comments on commit 50a8bd0

Please sign in to comment.