Prototype

From Elvanör's Technical Wiki
Revision as of 14:35, 29 September 2007 by Elvanor (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Useful Links

Notes

  • Binding is one of the most useful functions in Prototype. In particular, when iterating over objects with an each and a defined function, the function won't be binded to the current object. You must manually bind it.
  • When using classes, use the Prototype classes functions (Class.create()).
  • evalJSON() works well, but not the same way as eval() as it is a String method, thus you call it directly on your JSON string.