Guoliang Cao
Guoliang Cao
[ '.someEvent', {someEvent: function(arg1, arg2){}}, [ 'div', {click: function(){ $('.someEvent').trigger('someEvent', 'arg1', 'arg2') }} ] ]
a = ['div', {postProcess: function(arr){}}, 'content']; a = ['div', 'content'] a.postProcess = [function(arr){}] After process(), postProcess is called. This enables modifying the result before it is rendered. Multiple postProcess can...
render() will use document.write() to insert result to current location in DOM
- Depend on watch.js to monitor changes on object property - Can depend on multiple properties - Use default handlers to handle most common use - input: on change, set...
Use document.createElement/createAttribute/createText etc
Default to false If set to true, the advice will be applied to private and protected methods too. When :private_methods is set to true, :protected_methods option is set to true...
Default to true Affect advices using regular expressions
Affect advices using regular expressions
a4r_remove_advices: will remove advices with given names. If no name is given, all advices are removed.
Inherit advices: add option :inherit to all advices. Advices whose :inherit options are set to true will be copied to child modules/classes. By default :inherit is set to false.