Permalink
Browse files

MINOR Defensive scripting in LeftAndMain.Tree.js

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@98709 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 89c9262 commit 52c5e35768a28bdaeac39b372aa400ef66f9656a @chillu chillu committed Feb 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/LeftAndMain.Tree.js
@@ -75,7 +75,7 @@ TreeAPI.prototype = {
function(data, status){
self.innerHTML = data;
self.castAsTreeNode(self.firstChild);
- if (options.onSuccess) options.onSuccess(data);
+ if (options && options.onSuccess) options.onSuccess(data);
},
'html'
);

0 comments on commit 52c5e35

Please sign in to comment.