From e430852bef1d931edac766cc6256683781141599 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 23:39:05 +0000 Subject: [PATCH] MINOR Better error checking in SiteTreeNode javasceript git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@105679 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- javascript/LeftAndMain.Tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/LeftAndMain.Tree.js b/javascript/LeftAndMain.Tree.js index 6ec484fb..6c56059c 100755 --- a/javascript/LeftAndMain.Tree.js +++ b/javascript/LeftAndMain.Tree.js @@ -421,7 +421,7 @@ SiteTreeNode.prototype = { this.TreeNode.initialize(options); if(this.className && this.className.match(/class\-([^\s]*)/)) { var klass = RegExp.$1; - if(siteTreeHints && siteTreeHints[klass]) { + if(typeof siteTreeHints != 'undefined' && siteTreeHints[klass]) { this.hints = siteTreeHints[klass]; this.dropperOptions = { accept : (this.hints.allowedChildren && (this.className.indexOf('nochildren') == -1))