Permalink
Browse files

Fix better error reporting

  • Loading branch information...
1 parent cbcd8e9 commit 0e35775db2e0626bd384c33223a7fd12360faf79 @felixge committed Apr 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/scene.js
View
@@ -118,7 +118,7 @@ Scene.prototype.fakeFunction = function(object, method, name) {
var fakeFunctionObject = this._functions.first('isDelegator', object);
if (fakeFunctionObject) {
- object = fakeFunctionObject;
+ name = name || fakeFunctionObject.getName() + '#' + method;
}
fakeFunction = FakeFunction.create(object, method, name);

0 comments on commit 0e35775

Please sign in to comment.