Skip to content
Browse files

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
  • Loading branch information...
1 parent 1e51068 commit e430852bef1d931edac766cc6256683781141599 @chillu chillu committed May 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/LeftAndMain.Tree.js
View
2 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))

0 comments on commit e430852

Please sign in to comment.
Something went wrong with that request. Please try again.