Merge pull request #862 from sheadawson/861-hiddenhints

BUGFIX check if hints are defined for given pagetype before using.
This commit is contained in:
Ingo Schommer 2013-10-03 01:36:05 -07:00
commit 0aae86b467

View File

@ -68,7 +68,7 @@
// Build a list for allowed children as submenu entries
var pagetype = node.data('pagetype'),
id = node.data('id'),
disallowedChildren = hints[pagetype].disallowedChildren,
disallowedChildren = (typeof hints[pagetype] != 'undefined') ? hints[pagetype].disallowedChildren : null,
allowedChildren = $.extend(true, {}, hints['All']), // clone
disallowedClass,
menuAllowedChildren = {},