Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…hods
  • Loading branch information...
commit f0a7accad23d4fc1cbfcab18b9b00d07d4f9b042 1 parent 2183838
Nickolay Platonov authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/KiokuJS/Scope.js
View
4 lib/KiokuJS/Scope.js
@@ -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
},
Please sign in to comment.
Something went wrong with that request. Please try again.