{"id":4053591,"date":"2013-08-21T19:58:28","date_gmt":"2013-08-21T19:58:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/uncaught-referenceerror-1\/"},"modified":"2016-08-21T04:10:36","modified_gmt":"2016-08-21T04:10:36","slug":"uncaught-referenceerror-1","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/uncaught-referenceerror-1\/","title":{"rendered":"Uncaught ReferenceError"},"content":{"rendered":"<p>I&#8217;m getting error:<\/p>\n<p>$x(&#8220;.enhance_shortcode_menu_inline, .enhance_shortcode_menu_inline_list&#8221;).each(function() {<br \/>\n\tvar id = this.id;<br \/>\n\tmenu_superfish(id);<br \/>\n\tif($x(&#8220;#&#8221;+id).find(&#8220;.sub-menu&#8221;))<br \/>\n\t{<\/p>\n<p>\t\t\/\/$x($x(&#8220;#&#8221;+id+&#8221; li .sub-menu&#8221;)).each(function(index,element){<br \/>\n\t\t\/\/\tvar max = $x(this).parent().children(&#8220;a&#8221;).width();<br \/>\n\t\t\t$x(this).css(&#8220;left&#8221;,max+10);<br \/>\n<strong>Uncaught ReferenceError: max is not defined<\/strong><br \/>\n\t\t\/\/});<\/p>\n<p>\t\t$x($x(&#8220;#&#8221;+id+&#8221; li .sub-menu .sub-menu&#8221;)).each(function(index,element){<br \/>\n\t\t\t$x(this).css(&#8220;left&#8221;,&#8221;100%&#8221;);<br \/>\n\t\t});<br \/>\n\t}<br \/>\n});<\/p>\n<p>https:\/\/wordpress.org\/plugins\/shortcode-menu\/<\/p>\n","protected":false},"template":"","class_list":["post-4053591","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4053591","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4053591\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4053591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}