Skip to content

Commit

Permalink
- fixed bug, for inheriting from non-joose superclass ("isa" builder …
Browse files Browse the repository at this point in the history
…was incorrectly inlined)
  • Loading branch information
Nickolay Platonov committed Jun 27, 2011
1 parent 14283c0 commit 8495422
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -2,6 +2,8 @@ Release history for JooseX.Namespace.Depended

{{ $NEXT }}

- fixed bug, for inheriting from non-joose superclass ("isa" builder was incorrectly inlined)

0.16 2011-01-23 12:40

- minor performance improvement - avoid extra `prepareProperties` call, instead call directly to SUPER method
Expand Down
4 changes: 2 additions & 2 deletions lib/JooseX/Namespace/Depended.js
Expand Up @@ -187,7 +187,7 @@ Role('JooseX.Namespace.Depended', {
var descType = typeof descriptor

if (descType == 'function')
descriptors.push(descriptor.meta ? descriptor : descriptor())
descriptors.push(descriptor.meta ? descriptor : (propName != 'isa' ? descriptor() : null ))
else
if (descType == 'object')
if (descriptor.token)
Expand All @@ -210,7 +210,7 @@ Role('JooseX.Namespace.Depended', {
if (descriptors.length > 1)
throw "Cant specify several super- or meta- classes"
else
extend[propName] = descriptors[0]
if (descriptors[0]) extend[propName] = descriptors[0]

}
})
Expand Down

0 comments on commit 8495422

Please sign in to comment.