The framework doesn't provide any tools to enable that, but you could fork it and do that I suppose. You may have a larger issue because Prototype extends the prototype (small p) of a lot of different parts of the JavaScript language, and some of these changes mean that sloppily-written code will error out rather than sorta work. Iterating over an object with for .. in will also iterate over all of the methods that Prototype adds to every object, for example. This is fine if you have a normal object, but an Array is also an object, and it gets a bunch of new methods added to it as well. This breaks assumptions that code written in the absence of Prototype may be relying on to work at all.
Walter
On Oct 22, 2015, at 1:58 AM, Amit Dwivedi <amydw...@gmail.com> wrote:
> Hi,
> Can we change $ in prototype.js to something else like $p or $proto
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsub...@googlegroups.com.
The real question is, which problem are you trying to solve? Some sort of conflict?
Sent from my iPhone
> On Oct 22, 2015, at 5:57 PM, Walter Lee Davis <wa...@wdstudio.com> wrote:
>
> The framework doesn't provide any tools to enable that, but you could fork it and do that I suppose. You may have a larger issue because Prototype extends the prototype (small p) of a lot of different parts of the JavaScript language, and some of these changes mean that sloppily-written code will error out rather than sorta work. Iterating over an object with for .. in will also iterate over all of the methods that Prototype adds to every object, for example. This is fine if you have a normal object, but an Array is also an object, and it gets a bunch of new methods added to it as well. This breaks assumptions that code written in the absence of Prototype may be relying on to work at all.
>
> Walter
>
>> On Oct 22, 2015, at 1:58 AM, Amit Dwivedi <amydw...@gmail.com> wrote:
>>
>> Hi,
>> Can we change $ in prototype.js to something else like $p or $proto
>>
>> Thanks
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsub...@googlegroups.com.
>> To post to this group, send email to prototype-s...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/prototype-scriptaculous.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scriptaculous+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to prototype-scripta...@googlegroups.com.