Permalink
Browse files

fixing bug in options.offset, was using options.degrees

  • Loading branch information...
1 parent d0077a4 commit a162879b14238d7dd219aecc5c48ea60c91b2e75 @beaucollins committed Dec 6, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 menu.js
View
3 menu.js
@@ -2,10 +2,11 @@ var Menu = function(element, options){
if(!options) options = {};
options = {
degrees: options.degrees || 90,
- offset: options.degrees || -90,
+ offset: options.offset || -90,
radius: options.radius || 150
}
+
this.node = element;
this.menu_items = element.querySelectorAll('li');
this.button = element.querySelector('a');

0 comments on commit a162879

Please sign in to comment.