add null-trap to deref

This commit is contained in:
Scott Miles
2012-10-20 12:28:31 -07:00
parent b706f2831c
commit 869be83067

View File

@@ -129,7 +129,7 @@ license that can be found in the LICENSE file.
};
var deref = function(inNode) {
return inNode.baby || inNode;
return inNode && (inNode.baby || inNode);
};
var establishNodeReferences = function(inRoot) {