Permalink
Browse files

- return `undefined` in case of object absence from various scope met…

…hods
  • Loading branch information...
1 parent 2183838 commit f0a7accad23d4fc1cbfcab18b9b00d07d4f9b042 Nickolay Platonov committed Dec 2, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/KiokuJS/Scope.js
View
@@ -158,7 +158,7 @@ Class('KiokuJS.Scope', {
nodeToObject : function (node) {
var ownNode = this.nodesByID[ node.ID ]
- return ownNode && ownNode.getObject()
+ return ownNode && ownNode.getObject() || undefined
},
@@ -170,7 +170,7 @@ Class('KiokuJS.Scope', {
idToObject : function (id) {
var node = this.nodesByID[ id ]
- return node && node.getObject()
+ return node && node.getObject() || undefined
},

0 comments on commit f0a7acc

Please sign in to comment.