Prototype 1.7 RC2 发布,Ajax框架

来源: OSCHINA
编辑: 红薯
2010-05-13

该版本是 Prototype 1.7 的最后一个 RC 版本,正式版很快就会推出。

该版本改进内容:

* Remove redefinition of `Element#cumulativeOffset` when `getBoundingClientRect` is present, as it seems to give inaccurate results. (Andrew Dupont)
* Optimize element purging. (RStankov, Andrew Dupont)
* Add `Element.purge` for cleaning up event listeners and element storage keys on elements that will be removed from the page. Make `Element.update` perform similar cleanup automatically. (Andrew Dupont, Tobie Langel)
* The second argument to Event.Handler callbacks is the target element when no selector is present, or the matching element when a selector is present. Callbacks are always bound to the original element. (sam)
* Fix issue where `Element.Layout#get` would fail to interpret negative pixel values. (Sebastien Gruhier, Andrew Dupont)
* Fix bugs in layout.js. Add tests for `Element.Layout#toCSS`, `#toObject`, and `#toHash`. (RStankov, Andrew Dupont)
* Add `Element.Layout#toObject` and `Element.Layout.toHash`. (Andrew Dupont)
* Make `Element.Layout#toCSS` return camelized property names, as expected by `Element.setStyle`.

下载 Prototype 1.7 RC1

展开阅读全文
0 收藏
分享
加载中
更多评论
0 评论
0 收藏
分享
返回顶部
顶部