I would greatly appreciate the ability to take advantage of
Prototype''s features. However, I am new to my present organization and
do not want to disturb the Javascript work that other developers have
been doing. By simply adding the prototype library, I notice the
keys() method from another version of HashTable (Created by: Michael
Synovic on 01/12/2003 - it says) will read the extension methods from
enumerable. The reason is that the code for the older HashTable class
uses: for (var i in this._hashtable).
Is there a way to start using prototype without causing these
extension methods to appear. I would rather not touch the existing
HashTable implementation (excepted below).
Thanks.
Example from older:
this.keys = function()
{
var keys = new Array();
for (var i in this.hashtable)
{
if (this.hashtable[i] != null)
keys.push(i);
}
return keys;
}
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
On Wed, Apr 2, 2008 at 11:39 AM, JGHSBC <jgreek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is there a way to start using prototype without causing these > extension methods to appear.I haven''t used it, but you could take a look at Protosafe: http://protolific.net/ The whole idea is to do what you''re asking. Hope that helps! :Dan --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---