Commit 4f2e5f7e authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Get rid of :property_like and :member_like categories.

Only use the :method category in @merge_context.

So no more does one need to choose between two types when creating
his own member type.

The only problem at the moment is that I needed to add explicit check
for :cfg/:property/:css_var to Tag::Type#merge.
parent 655b54f2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@ module JsDuck::Tag
      @repeatable = true
      @member_type = {
        :name => :cfg,
        :category => :property_like,
        :title => "Config options",
        :toolbar_title => "Configs",
        :position => MEMBER_POS_CFG,
+0 −1
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@ module JsDuck::Tag
      @tagname = :css_mixin
      @member_type = {
        :name => :css_mixin,
        :category => :method_like,
        :title => "CSS Mixins",
        :position => MEMBER_POS_CSS_MIXIN,
      }
+0 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ module JsDuck::Tag
      @tagname = :css_var
      @member_type = {
        :name => :css_var,
        :category => :property_like,
        :title => "CSS Variables",
        :toolbar_title => "CSS Vars",
        :position => MEMBER_POS_CSS_VAR,
+0 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ module JsDuck::Tag
      @tagname = :event
      @member_type = {
        :name => :event,
        :category => :method_like,
        :title => "Events",
        :position => MEMBER_POS_EVENT,
      }
+0 −3
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@ module JsDuck::Tag
    #
    #     {
    #       :name => :event,
    #       :category => :method_like,
    #       :title => "Events",
    #       :position => MEMBER_POS_EVENT,
    #       # The following are optional
@@ -22,8 +21,6 @@ module JsDuck::Tag
    #       ]
    #     }
    #
    # The category must be either :property_like or :method_like.
    #
    # Position defines the ordering of member section in final HTML
    # output.
    #
Loading