diff --git a/lib/jsduck/accessors.rb b/lib/jsduck/accessors.rb index 447d26c54ac9a6d044842430f607ef5bfc7f6f63..3d605eea1741d08974f4331b492684fa903d331c 100644 --- a/lib/jsduck/accessors.rb +++ b/lib/jsduck/accessors.rb @@ -83,12 +83,7 @@ module JsDuck return add_shared({ :tagname => :event, :name => name, - :doc => - "Fires when the {@link ##{cfg[:id]}} configuration is changed by {@link #method-#{setter_name}}." + - "\n\n" + - "Note that this event is fired *before* the value of {@link ##{cfg[:id]}} has been updated, " + - "and that you can return false from any listener to the #{name} event " + - "to cancel the change.", + :doc => "Fires when the {@link ##{cfg[:id]}} configuration is changed by {@link #method-#{setter_name}}.", :params => [ { :name => "this", diff --git a/spec/aggregator_accessors_spec.rb b/spec/aggregator_accessors_spec.rb index b5c76305c9500c7fa6a2dba5b9ac254ed10854e6..a7148809b57aadc80afafa4af4adde998750130c 100644 --- a/spec/aggregator_accessors_spec.rb +++ b/spec/aggregator_accessors_spec.rb @@ -170,10 +170,7 @@ describe JsDuck::Aggregator do it "creates documentation for foochange event" do @events[0][:doc].should == - "Fires when the {@link #cfg-foo} configuration is changed by {@link #method-setFoo}.\n\n" + - "Note that this event is fired *before* the value of {@link #cfg-foo} has been updated, " + - "and that you can return false from any listener to the foochange event " + - "to cancel the change." + "Fires when the {@link #cfg-foo} configuration is changed by {@link #method-setFoo}." end it "has 3 params" do