Skip to content

Commit

Permalink
Fixed SceneJS.Node#addNode, rebuilt
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed May 13, 2013
1 parent 5003184 commit 8f0034c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/latest/scenejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -6019,7 +6019,7 @@ SceneJS.Node.prototype.addNode = function(node) {
if (!node._compile) {
if (typeof node == "string") {

var gotNode = this.engine.findNode(node);
var gotNode = this._engine.findNode(node);
if (!gotNode) {
throw SceneJS_error.fatalError(
SceneJS.errors.ILLEGAL_NODE_CONFIG,
Expand Down
2 changes: 1 addition & 1 deletion src/core/scene/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ SceneJS.Node.prototype.addNode = function(node) {
if (!node._compile) {
if (typeof node == "string") {

var gotNode = this.engine.findNode(node);
var gotNode = this._engine.findNode(node);
if (!gotNode) {
throw SceneJS_error.fatalError(
SceneJS.errors.ILLEGAL_NODE_CONFIG,
Expand Down

0 comments on commit 8f0034c

Please sign in to comment.