Method: ExtNode#build_abstract_function
- Defined in:
- lib/extjsml/basenode.rb
#build_abstract_function ⇒ Object
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/extjsml/basenode.rb', line 284 def build_abstract_function # unless root? # @config = @config.merge({ :ref => "../"*(at_deep-1) + conv_id_to_ref }) unless @config[:id].nil? # end code = [] p @xtype, @config if has_child? childs.each do |c| code += c.build_abstract_function end else return code if @config[:call].nil? code << "this.#{conv_id_to_ref}.on('#{@config[:call_on]}', this.#{@config[:call_fn]}, this)" end code end |