From 995c7c811d3068db45d64ec1baa9cd900ae9a475 Mon Sep 17 00:00:00 2001 From: Robert Dougan Date: Sun, 5 Feb 2012 16:43:37 -0800 Subject: [PATCH] Removing incorrect docs from @evented tag --- lib/jsduck/accessors.rb | 7 +------ spec/aggregator_accessors_spec.rb | 5 +---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/jsduck/accessors.rb b/lib/jsduck/accessors.rb index 447d26c5..3d605eea 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 b5c76305..a7148809 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 -- GitLab