Developer Notes for prototype.jsが1.4.0対応に
去年の夏、prototype.js 1.3.1の英語ドキュメントが出て話題になりました。はてなでも多くのユーザーがブックマークしました。
Developer Notes for prototype.js covers version 1.4.0
そのドキュメントが1.4.0対応になりました。ご存知でしたでしょうか?久しぶりにprototype.jsのドキュメントが見たくなって、自分のはてなブックマークを漁って、見に行きました。それでドキュメントが1.3.1から1.4.0に更新されたことに気がつきまいた。
どれくらい変更されたのか気になったので1.3.1と1.4.0のドキュメントのdiffをとってみることにしました。コマンドラインによるテキストのdiffと、目視で以下の追加・変更点のリストアップしました。(やるんじゃなかった、結構時間かかりました。。。)
- The utility functions
- Using the $A() function
- Using the $H() function
- Using the $R() function
- Extensions for the Object class
- inspect(targetObj)
- Extensions for the Number class
- succ()
- times(iterator) & sample code
- Extensions for the String class
- stripScripts()
- extractScripts()
- evalScripts()
- toQueryParams()
- parseQuery()
- toArray()
- camelize()
- Extensions for the Array class
- clear()
- first()
- last()
- compact()
- flatten()
- without(value1 [, value2 [, .. valueN]])
- indexOf(value)
- reverse([applyToSelf])
- shift()
- inspect()
- Extensions for the document DOM object
- getElementsByClassName(className [, parentElement])
- The Prototype object
- K
- The Enumerable object
- each(iterator)
- all([iterator])
- any(iterator)
- collect(iterator)
- detect(iterator)
- entries()
- find(iterator)
- findAll(iterator)
- grep(pattern [, iterator])
- include(obj)
- inject(initialValue, iterator)
- invoke(methodName [, arg1 [, arg2 [...]]])
- map(iterator)
- max([iterator])
- member(obj)
- min([iterator])
- partition([iterator])
- pluck(propertyName)
- reject(iterator)
- select(iterator)
- sortBy(iterator)
- toArray()
- zip(collection1[, collection2 [, ... collectionN [,transform]]])
- The Hash object
- keys()
- values()
- merge(otherHash)
- toQueryString()
- inspect()
- The ObjectRange class
- start
- end
- exclusive
- [ctor](start, end, exclusive)
- include(searchedValue)
- The Ajax object
- activeRequestCount
- The Ajax.Responders object
- responders
- register(responderToAdd)
- unregister(responderToRemove)
- dispatch(callback, request, transport, json)
- The Ajax.Request class
- url
- evalJSON()
- evalReponse()
- header(name)
- setRequestHeaders()
- The options argument object
- onException
- The Ajax.Updater class
- ScriptFragment [deleted]
- The Element object
- classNames(element)
- empty(element)
- getDimensions(element)
- getStyle(element, cssProperty)
- makeClipping(element)
- makePositioned(element)
- setStyle(element, cssProperty)
- scrollTo(element)
- undoClipping(element)
- undoPositioned(element)
- update(element, html)
- visible(element)
- The Element.ClassNames class
- [ctor](element)
- add(className)
- remove(className)
- set(className)
- The Abstract.Insertion class
- contentFromAnonymousTable()
- The Insertion.Bottom class
- [ctor](element, content) & sample code
- The Form object
- findFirstElement(form)