PDA

View Full Version : JooseX.Bridge.Ext revised



SamuraiJack1
14 Dec 2010, 10:58 AM
I'm glad to announce that bridge from ExtJS (https://github.com/SamuraiJack/joosex-bridge-ext) class system to Joose3 (http://joose.it) class system now works with un-patched ExtJS sources.

You can give it a try with this ext-base.js (http://sandbox.extjs-ux.org/extjs/ext-base.js) file (from 3.3.1), which includes Joose and bridge. Just replace the original ext-base.js with it, and try to write your classes like this:


Class('My.Window', {
isa : Ext.Window,

has : {

attr : {
is : 'rw',
required : true
}
},

before : {
render : function () {
this.title = 'Joosed! ' + this.title
}
},


after : {
render : function () {
this.body.update('Hello world')
}
},


methods : {
someMethod : function (arg) {
this.SUPER(agr)
}
}
})
This extension is being distributed via `npm` package manager, see the github for details.

I will also appreciate if someone will try to use this adapter in his system (preferably big&complex system) and report issues if there will be any.

Thanks, Nickolay