Skip to content

Commit 85b72c1

Browse files
authored
Merge pull request #51 from edgardmessias/patch-1
Fixed getExtends of Class node
2 parents ebf07f1 + 9725fcb commit 85b72c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/nodes/class.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ var Class = Node.extends('class');
3131
*/
3232
Class.prototype.getExtends = function() {
3333
if (this.extends) {
34-
return this.first('extends');
34+
var uuid = this.first('extends');
35+
if (uuid) {
36+
return this._db.get(uuid);
37+
}
3538
}
3639
return null;
3740
};

0 commit comments

Comments
 (0)