[Tickets #5632] Re: JS error when no spam/ham buttons specified
bugs at bugs.horde.org
bugs at bugs.horde.org
Wed Aug 15 18:28:19 UTC 2007
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://dev.horde.org/horde/whups/ticket/?id=5632
-----------------------------------------------------------------------
Ticket | 5632
Updated By | Michael Rubinsky <mrubinsk at horde.org>
Summary | JS error when no spam/ham buttons specified
Queue | DIMP
Version | HEAD
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Owners |
-----------------------------------------------------------------------
Michael Rubinsky <mrubinsk at horde.org> (2007-08-15 11:28) wrote:
This appears to be an issue with prototype's Array.without() method.
On line 1919 of DimpCore.js, the necessary values from the buttons array
are not removed. It seems like without() doesn't take an array as an
argument, but doing something like this:
<code>
if (nobuttons.size()) {
nobuttons.each(function(b) {
this.buttons = this.buttons.without(b);
});
}
</code>
seems to break the page....and it breaks on the this.buttons assignment.
Simply logging the value of b to firebug's console via console.log() works
fine though.
Not quite sure where to go from here...
More information about the bugs
mailing list