Please post your paches with relevant tests in trac.

If you're unsure how to do that, check http://prototypejs.org/contribute

Regards,

Tobie

On Apr 21, 6:34 pm, Jupiter ITS <[EMAIL PROTECTED]> wrote:
> prototype 1.5.1_rc2 endsWith is broken when the string length is one
> less than pattern length.  Fix with the following:
>
> endsWith: function(pattern) {
>     var index = this.lastIndexOf(pattern)
>     if(index == -1)
>         return false
>     return index == (this.length - pattern.length);
>   }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to