Small fix for WPB when there is no menu item

This commit is contained in:
Florin Patan 2012-12-15 23:53:39 +02:00
parent f9297c103e
commit 254d40bca0

View File

@ -107,6 +107,10 @@
}
window.setTimeout(function() {
if (document.getElementById('menu-profiler') == null) {
return;
}
var menuItems = document.getElementById('menu-profiler').getElementsByTagName('LI'),
elem, value, child, displayState = Sfjs.getPreference('menu/displayState');