The major issue that was resolved was with
Object.prototype.extend which was adding the 'extend' method
to every object.
(http://erik.eae.net/archives/2005/06/06/22.13.54/)
Still, the Array object in prototype.js return unexpected
results which includes all the enumeration methods.
For example:
var array = ["bob", "sally", "fred"];
for(each in array){
document.write(each + "<BR>")
}
returns:
name
value
set
exec
indexOf
without
flatten
compact
...
BTW, I don't think this is a 'problem' but it can break
existing javascript code. Also, I know using an Array as
Hash/Object is just a bad idea, still people have made this
mistake, including myself.
This brings me back to my question, does prototype.js break
any popular libraries?
thanks
~jake
Andrew Kaspick wrote:
I believe the issue with the for loop was resolved quite a while ago.
On 5/20/06, Jacob Rockowitz <[EMAIL PROTECTED]> wrote:
I think this brings up the question of what is prototype.js
NOT compatible with. I am curious if people have ran into
issues with any of the common libraries like dojo, YUI,
mochikit, etc..
Also, the core javascript object that prototype.js modifies
that I have seen cause problems is the Array which causes
problems for code like 'for(each in {Array}'. Are there any
other issues with prototype.js.
With that said, I still feel prototype.js is the most
elegant js library around.
Jake
Roberto Saccon wrote:
> Nothing really is compatible with prototype.js, becausue prototyps
> modifies some core javascript objects, nevertheless, you can use both
> together, it worked fine for me, just take care of the order of loading
> the libs (prototype.js , then dojo.js)
>
> On 5/19/06, *Matt Spendlove* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Are these libs compatible ? At the very least I'd like to be
able to
> use Prototype & Dojo ?
>
> Thoughts welcome..
>
> Matt
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> <mailto:Rails-spinoffs@lists.rubyonrails.org>
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
>
>
> --
> Roberto Saccon
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs