Loading lib/jsduck/aggregator.rb +0 −3 Original line number Diff line number Diff line Loading @@ -205,10 +205,7 @@ module JsDuck end # Appends Ext4 options parameter to each event parameter list. # But only when we are dealing with Ext4 codebase. def append_ext4_event_options return unless ext4? options = { :tagname => :param, :name => "eOpts", Loading lib/jsduck/app.rb +3 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,9 @@ module JsDuck agr.create_global_class agr.remove_ignored_classes agr.create_accessors if @opts.ext4_events == true || (@opts.ext4_events == nil && agr.ext4?) agr.append_ext4_event_options end agr.result end Loading lib/jsduck/options.rb +10 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ module JsDuck attr_accessor :output_dir attr_accessor :ignore_global attr_accessor :external_classes attr_accessor :ext4_events # Customizing output attr_accessor :title Loading Loading @@ -73,6 +74,7 @@ module JsDuck # Special anything-goes type "Mixed", ] @ext4_events = nil @meta_tag_paths = [] @version = "3.11.1" Loading Loading @@ -157,6 +159,14 @@ module JsDuck @external_classes += classes end opts.on('--[no-]ext4-events', "Appends extra options parameter that all Ext events have.", "The default is to auto-detect if we're using Ext JS 4", "based on whether the code uses Ext.define.", "Use this option to override the auto-detection.", " ") do |e| @ext4_events = e end opts.on('--builtin-classes', "Includes docs for JavaScript builtin classes.", " ") do read_filenames(@root_dir + "/js-classes") Loading Loading
lib/jsduck/aggregator.rb +0 −3 Original line number Diff line number Diff line Loading @@ -205,10 +205,7 @@ module JsDuck end # Appends Ext4 options parameter to each event parameter list. # But only when we are dealing with Ext4 codebase. def append_ext4_event_options return unless ext4? options = { :tagname => :param, :name => "eOpts", Loading
lib/jsduck/app.rb +3 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,9 @@ module JsDuck agr.create_global_class agr.remove_ignored_classes agr.create_accessors if @opts.ext4_events == true || (@opts.ext4_events == nil && agr.ext4?) agr.append_ext4_event_options end agr.result end Loading
lib/jsduck/options.rb +10 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ module JsDuck attr_accessor :output_dir attr_accessor :ignore_global attr_accessor :external_classes attr_accessor :ext4_events # Customizing output attr_accessor :title Loading Loading @@ -73,6 +74,7 @@ module JsDuck # Special anything-goes type "Mixed", ] @ext4_events = nil @meta_tag_paths = [] @version = "3.11.1" Loading Loading @@ -157,6 +159,14 @@ module JsDuck @external_classes += classes end opts.on('--[no-]ext4-events', "Appends extra options parameter that all Ext events have.", "The default is to auto-detect if we're using Ext JS 4", "based on whether the code uses Ext.define.", "Use this option to override the auto-detection.", " ") do |e| @ext4_events = e end opts.on('--builtin-classes', "Includes docs for JavaScript builtin classes.", " ") do read_filenames(@root_dir + "/js-classes") Loading