Skip to content

Commit e430852

Browse files
committed
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
1 parent 1e51068 commit e430852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/LeftAndMain.Tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ SiteTreeNode.prototype = {
421421
this.TreeNode.initialize(options);
422422
if(this.className && this.className.match(/class\-([^\s]*)/)) {
423423
var klass = RegExp.$1;
424-
if(siteTreeHints && siteTreeHints[klass]) {
424+
if(typeof siteTreeHints != 'undefined' && siteTreeHints[klass]) {
425425
this.hints = siteTreeHints[klass];
426426
this.dropperOptions = {
427427
accept : (this.hints.allowedChildren && (this.className.indexOf('nochildren') == -1))

0 commit comments

Comments
 (0)