diff --git a/fg.menu.js b/fg.menu.js index d8d584f..53a6402 100755 --- a/fg.menu.js +++ b/fg.menu.js @@ -28,6 +28,7 @@ $.fn.menu = function(options){ else { m.kill(); }; return false; }); + return m.container; }; function Menu(caller, options){ @@ -37,6 +38,7 @@ function Menu(caller, options){ this.menuOpen = false; this.menuExists = false; + this.container = container; var options = jQuery.extend({ content: null, @@ -642,4 +644,4 @@ Number.prototype.pxToEm = String.prototype.pxToEm = function(settings){ var result = (settings.reverse == true) ? (pxVal * scopeVal).toFixed(2) + 'px' : (pxVal / scopeVal).toFixed(2) + 'em'; return result; -}; \ No newline at end of file +};