Prototype Library for Javascript – versioning brainiacs?
Hmm oh dear.
I’m working on some trivial Javascript code for a new site to add a little dynamic behaviour, using the "trusty" Prototype JS library that we have loved before. Only, property/array access on Hash objects is not working any more. I waste a lot of time on this.
Then I find this blog post on the prototype website.
Yes that’s right, in version 1.6 they made a completely breaking change to the behaviour of Hash – array indexing is no longer possible, you must call Hash.get(key). This makes me rather worried as it seems the developers are not aware of the concept of minor revisions not changing the public interface of a library.
Bizarre. I can only wonder what other functionality will be broken in other pre-2.0 releases. This has shaken my confidence in Prototype I must say.
No related posts.
Recent Comments