var Lomtiki = $initialize({
type: 'module',
name: 'Lomtiki',
properties: [{
name: 'version',
value: '2.0'
}],
items: [{
type: 'class',
name: 'HelloWorld',
constructor: {
parameters: [{
name: 'hello'
}],
handler: function(meta) {
meta.scope.hello = meta.hello;
}
},
methods: [{
name: 'print',
handler: function(meta) {
console.log(meta.scope.hello);
}
}]
}]
});
var hw = new Lomtiki.HelloWorld({
hello: 'hello',
listeners: {
print$before: {
handler: function(meta) {
meta.scope.hello += ' world' + meta.exclamation;
}
}
}
});
hw.print({
exclamation: '!'
});
2010-02-08
Lomtiki example
I'm just trying new approaches to development on javascript
Labels:
javascript,
lomtiki
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment