Loading lib/jsduck/event_table.rb +10 −0 Original line number Diff line number Diff line Loading @@ -9,11 +9,21 @@ module JsDuck @column_title = "Event" @row_class = "method-row" @short_params = ShortParams.new @long_params = LongParams.new(@cls) end def signature_suffix(item) " : " + @short_params.render(item[:params]) end def extra_doc(item) [ "<div class='mdetail-params'>", "<strong style='font-weight: normal;'>Listeners will be called with the following arguments:</strong>", @long_params.render(item[:params]), "</div>" ].join("\n") end end end Loading
lib/jsduck/event_table.rb +10 −0 Original line number Diff line number Diff line Loading @@ -9,11 +9,21 @@ module JsDuck @column_title = "Event" @row_class = "method-row" @short_params = ShortParams.new @long_params = LongParams.new(@cls) end def signature_suffix(item) " : " + @short_params.render(item[:params]) end def extra_doc(item) [ "<div class='mdetail-params'>", "<strong style='font-weight: normal;'>Listeners will be called with the following arguments:</strong>", @long_params.render(item[:params]), "</div>" ].join("\n") end end end