Skip to content

Commit

Permalink
- avoid extra deps collection phase with direct call to SUPER
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickolay Platonov committed Jan 17, 2011
1 parent e394da2 commit a63dd2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/JooseX/Namespace/Depended.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,16 @@ Role('JooseX.Namespace.Depended', {
console.log('Deferred deps handling for class [' + name + '], deps = [' + JSON.stringify(resource.dependencies) + ']')
}

var me = this
var me = this
var SUPER = this.SUPER


//unshift is critical for correct order of readyListerens processing!
//constructing is delaying until resource will become ready
resource.readyListeners.unshift(function () {
me.inlineAllDeps(extend)

me.prepareProperties(name, extend, defaultMeta, callback)
SUPER.call(me, name, extend, defaultMeta, callback)
})

return this.create(name, Joose.Namespace.Keeper, {})
Expand Down

0 comments on commit a63dd2e

Please sign in to comment.