YUI Release 2.5.0 README
Digest
This document is a summary of
the 2.5.0 update information that has been added to the respective
README files included within
each component folder. Please
refer the README files for the
components you are using for
a full change history of each component.
Animation
¥
Enhancements
- Replaced toString overrides with static NAME property.
AutoComplete
¥ Bug Fixes
- Fixed bug where Mac users were not able to input
"&" or "(" characters.
Base
¥
No changes.
Button
¥ Bug Fixes
- Fixed issue where returning false inside
the scope of a listener for attribute "before" events (i.e
"beforeCheckedChange") would not cancel the attribute's default
setter.
Calendar
¥
Enhancements
- Prevent default event
handling in CalendarNavigator enter key listener, to prevent automatic form
submission when using Calendar inside a form.
- Added border, padding and
margin rules to Calendar Sam Skin to protect Sam Skin's look and feel when
Calendar is used with YUI base.css.
¥
Bug Fixes
- Added workaround to DateMath.add and
subtract for Safari 2 (webkit) bug in Date.setDate(n) which doesn't handle
value of n less than -128 or greater than 127 correctly.
See: http://brianary.blogspot.com/2006/03/safari-date-bug.html
Charts
¥
Enhancements
- Added lineSize style to
series styles.
- Added showLabels substyle
to xAxis and yAxis styles.
- Added more descriptive
local content warning for ExternalInterface failure.
- Improved minor unit
calculation.
- Added initialization flag
to ensure DataSource doesn't receive multiple requests during initialization.
¥
Bug Fixes
- Fixed animation and marker positioning bugs
- Fixed bug that caused series definition update to fail
- Fixed bug that caused setting hex color values with # symbol to
fail
Color Picker
¥
No changes.
Connection
¥
Enhancements
- setForm() can now detects
HTTPS in the URI for file upload transactions. The third, boolean argument for HTTPS when using IE is no
longer necessary.
¥
Bug Fixes
- SF1882101. POST transactions without a message
will now have a Content-Length value set to 0 for FF 2.x. This is accomplished by passing a value
of empty string instead of null to XHR's send(). All other A-Grade browsers remain unaffected and perform
correctly.
Container
¥
Enhancements
- Added a "hideaftersubmit"
config property to Dialog, to allow the end user to configure whether or not
the Dialog should be hidden after it has been submitted. By default it is set
to false, to provide backwards compatibility.
- Added contextMouseOverEvent,
contextMouseOutEvent and contextTriggerEvent events to Tooltip, which provide
access to the context element when the user mouses over a context element,
mouses out of a context element, and before a tooltip is about to be triggered
(displayed) for a context element. See the API docs for these events for futher
details.
- Added a "disabled" config
property to Tooltip, to allow the user to dynamically disable a tooltip.
- Optimized constraintoviewport handling
for Overlays which haven't been specifically positioned, so that the constraint
checks aren't made before every show.
¥
Bug Fixes
- We now add the text resize monitor
iframe to the DOM in a timeout, to help alleviate the perpetual loading
indicator seen in Firefox 2.0.0.8 (Gecko 1.8.1.8) and above on Windows.
- Changed the closing script tag string
used in the resize monitor, to allow container-min.js, container_core-min.js
content to be used inline.
- Fixed problem with underlay size being
too short in IE6 when setting up an initially visible Dialog with buttons.
- Removed overflow:auto applied to the
modal mask for all browsers other than gecko/MacOS to help avoid the
"missing text cursor" Gecko bug. Overflow:auto is still applied to
for Gecko/MacOS to help avoid scrollbar bleedthrough, another Gecko bug (discussed
in Container's known issues section).
Cookie Utility
¥
New component for 2.5.0.
Data Source
¥
Enhancements
- doBeforeCallback() - The second argument is now oFullResponse
rather than oRawResponse.
- handleResponse() -
- oCallback is now an object literal pointing to success and failure
handlers and can contain scope and argument values.
- The oCaller argument is now deprecated.
- When callback function is passed
oRequest and oParsedResponse values the oParsedResponse object now consistently
returns the following values:
- tId (Number)
- results (Array)
- error (Boolean)
- totalResults (Number) (when available)
- makeConnection() -
- oCallback is now an object literal pointing to success and failure
handlers and can contain scope and argument values.
- The oCaller argument is now deprecated.
- parseArrayData() - The second argument is now oFullResponse
rather than oRawResponse.
- parseHTMLTableData() - The second argument is now oFullResponse
rather than oRawResponse.
- parseJsonData() - The second argument is now oFullResponse
rather than oRawResponse.
- parseTextData() - The second argument is now oFullResponse
rather than oRawResponse.
- parseXMLData() - The second argument is now oFullResponse rather
than oRawResponse.
- sendRequest() -
- oCallback is now an object literal pointing to success and failure
handlers and can contain scope and argument values.
- The oCaller argument is now deprecated.
- setInterval() -
- oCallback is now an
object literal pointing to success and failure handlers and can contain scope
and argument values.
- The oCaller argument is now deprecated.
- cacheRequestEvent - oArgs.caller is now deprecated in favor of
oCallback object literal.
- dataErrorEvent - oArgs.caller is now deprecated in favor of
oCallback object literal.
- getCachedResponseEvent - oArgs.caller is now deprecated in favor
of oCallback object literal.
- requestEvent - oArgs.caller is now deprecated in favor of oCallback
object literal.
- responseCacheEvent - oArgs.caller is now deprecated in favor of
oCallback object literal.
- responseEvent - oArgs.caller is now deprecated in favor of
oCallback object literal.
- responseParseEvent - oArgs.caller is now deprecated in favor of
oCallback object literal.
Data Table
¥ Enhancements
- Introduced YAHOO.widget.Paginator to manage pagination.
- Introduced YAHOO.util.Chain to allow for progressive rendering.
- Removed APIs
-
CLASS_SCROLLBODY
-
CLASS_TABLE
- getTableEl()
- Changed APIs
- doBeforeLoadData(sRequest, oResponse,
oPayload) - oResponse is now the converted full response (typed JSON or XML as
appropriate). oPayload is now an optional data payload implementer can pass in
to DataSource.sendRequest via the callback object literal.
- formatCell() - The first argument, elCell, is
now a reference to the cell liner element rather than the TD itself.
- onDataReturnAppendRows(sRequest, oResponse,
oPayload) - oResponse is now the converted full response (typed JSON or XML as
appropriate). oPayload is now an optional data payload implementer can pass in
to DataSource.sendRequest via the callback object literal.
- onDataReturnInitializeTable(sRequest,
oResponse, oPayload) - oResponse is now the converted full response (typed JSON
or XML as appropriate). oPayload is now an optional data payload implementer
can pass in to DataSource.sendRequest via the callback object literal.
- onDataReturnInsertRows(sRequest, oResponse,
oPayload) - oResponse is now the converted full response (typed JSON or XML as
appropriate). oPayload is now an optional data payload implementer can pass in
to DataSource.sendRequest via the callback object literal.
-
paginator - Should now be an instance of YAHOO.widget.Paginator.
-
sortedBy.dir - Use CLASS_ASC or CLASS_DESC instead of "asc" and
"desc" strings.
- Scrolling must be enabled via the configs
"scrollable", "width", and "height". CSS should
no longer be used to set width or height on scrollable tables.
- Deprecated APIs
-
formatPaginatorDropdown() - Use new Paginator class.
-
formatPaginatorLinks() - Use new Paginator class.
-
formatPaginators() - Use new Paginator class.
-
refreshView() - Use render().
-
showPage() - Use new Paginator class.
-
updatePaginator() - Use new Paginator class.
-
headerCellClickEvent - Use theadCellClickEvent.
-
headerCellDblclickEvent - Use theadCellDblclickEvent.
-
headerCellMousedownEvent - Use theadCellMousedownEvent.
-
headerCellMouseoutEvent - Use theadCellMouseoutEvent.
-
headerCellMouseoverEvent - Use theadCellMouseoverEvent.
-
headerLabelClickEvent - Use theadLabelClickEvent.
-
headerLabelDblclickEvent - Use theadLabelDblclickEvent.
-
headerLabelMousedownEvent - Use theadLabelMousedownEvent.
-
headerLabelMouseoutEvent - Use theadLabelMouseoutEvent.
-
headerLabelMouseoverEvent - Use theadLabelMouseoverEvent.
-
headerRowClickEvent - Use theadRowClickEvent.
-
headerRowDblclickEvent - Use theadRowDblclickEvent.
-
headerRowMousedownEvent - Use theadRowMousedownEvent.
-
headerRowMouseoutEvent - Use theadRowMouseoutEvent.
-
headerRowMouseoverEvent - Use theadRowMouseoverEvent.
-
refreshEvent - Use renderEvent.
-
paginated - No longer used, as long as "paginator" value is an
instance of Paginator class.
- RecordSet
-
updateKey() - Use updateRecordValue().
-
keyUpdateEvent - Use recordValueUpdateEvent.
- Column
- width - Must now be a number. Strings will be
ignored.
- sortOptions.defaultOrder - Use
sortOptions.defaultDir, and use CLASS_ASC or CLASS_DESC instead of
"asc" and "desc" strings.
Dom
¥
Enhancements
- get() now correctly
handles textNodes
Drag and Drop
¥
Enhancements
- Added CustomEvents in addition to method overrides
(See API Docs for more information)
- Added an IFRAME
element to the proxy div (only in IE) to keep select elements and other object
from bleeding through
Editor
¥
Bug Fixes
- Examples:
- [1687273] - [SF
1861119 ] Flickr Example code is incorrect
- Config
- [1556954] - [SF
1816784 ] tabbing troubles...
Added a new config option called plainText. (See API docs for more
information)
- Removed the
requirement for a textarea. If you pass the config as the first argument to the
constructor the Editor will create the textarea for you.
- Internet Explorer
- [1515145] - [SF
1807057 ] RTE _setDesignMode reloads page content
- [1687267] - [SF
1861514 ] editorContentLoaded fires early in IE6/7
- [1687244] - [SF
1866217 ] Editor in frameset causes "unspecified error" in IE6
- [1687278] - [SF
1859031 ] Change Font Color on IE
- [1687283] - [SF
1857798 ] IE7 RTE HTTPS problem
- [1687316] - [SF
1854657 ] IE bullet/number strange behaviour
- All Browsers
- [1687258] - [SF
1862824 ] Problem with <script> tags in editor content
- [1687292] - [SF
1857235 ] cleanHTML function stripping closing tags
- [1687322] - [SF
1849730 ] Multiple Editors' toolbars conflict
- [1688270] - [SF
1867927] Editor dynamic height adjust
- [1693656] - [SF
1870215] handleSubmit hijacks the value of the submit button
- [1693686] - [SF
1869619] Image Modification Dialog
- [1693719] - [SF
1850814] Editor produces faulty code
Element
¥
Bug Fixes
- SetAttributes now correctly handles false values
Event
¥
Enhancements
- Added try/catch to getTarget to suppress errors when targeting ActiveX
controls.
- Increased the default poll interval to 20ms, and decreased poll
retries to 2000 to reduce IE CPU usage.
- onDOMReady now uses the native DOMContentLoaded event for the latest
releases of WebKit since it support for it was added.
- Restored the code that removes all listeners during the unload event
to address issues caused by the way FireFox persists listeners through page
refreshes.
Fonts
¥ No
changes
Get
¥
Enhancements
- autopurge no
longer attempts to remove nodes that have been removed previously.
Grids
¥
Enhancements
- Tweaked em widths for "template presets" .yui-t1-6
- Pruned two redundant lines
History Manager
¥ No
changes
Image Cropper
¥
New component for 2.5.0.
Image Loader
¥
Enhancements
- Group object has an addCustomTrigger() function for adding
custom event triggers
- PNG background images now support custom properties for
AlphaImageLoader
JSON
¥
Enhancements
- Restructured for customization and
readability
- Extracted isValid method to test a JSON
string
- Extracted dateToString method to allow
overriding with custom serialization format
- Added stringToDate method to
reconstitute Date instances from default JSON UTC date strings. Use this in a filter method passed to
lang.JSON.parse
¥
Bug fixes
- fixed walk method so filters are properly applied
Layout Manager
¥
New component for 2.5.0.
Logger
¥ No
changes
Menu
¥
Bug Fixes
- Corrected the paths to all images in the
original Menu CSS file so that checked MenuItems now render correctly.
- Clicking on a disabled MenuItem instance
will no longer cause the browser to navigate to the top of the current page.
- Removed the use of the
"yui-skin-sam" class name from the Menu core CSS file.
- Scrolling Menus now render correctly in
IE 6 and IE 7.
- Submenus are no longer hidden then
re-shown when the mouse is moving from a visible submenu back to its parent
MenuItem instance.
Profiler
¥ No
changes
Profiler Viewer
¥
New component for 2.5.0.
Reset
¥
Enhancements
- Added
input,textarea,select{*font-size:100%;} to enable resizing on IE
Resize
¥
New component for 2.5.0.
Selector
¥
Enhancements
- query() now returns single node (not array) when firstOnly is
true
- filter() now works with ID input
- pseudos and attributes correctly handle spaces
Slider
¥
Enhancements
- Slider onDrag now calls fireEvents, so bg mousedown, drag,
mouseup fires change events
- Slider uses new dragOnly=true property added in dragdrop
- Introduced DualSlider
Tab View
¥
Enhancements
- moved Tab default "title" attribute to static
Tab.TITLE
Tree View
¥
Enhancements
- Added isLeaf property to Node that
allows dynamically loaded trees to have nodes that are not dynamically loaded
(without configuring dynamic load for each individual dynamic load, which was
the requirement previously).
If set to true, dynamic loading will be disabled for
the node and it will always have the leaf node presentation (rather than the
expand ico
- Made CSS adjustments to work with
base.css
- HTMLNode: remov ed unused property
'content', and documented the correct property 'html'.
Uploader
¥
New component for 2.5.0.
YAHOO Global
¥
Enhancements
- API doc updates
YUI Loader
¥
Enhancements
- Updated metadata for 2.5.0
¥
Bug fixes
- (from the get utility) fixed autopurge.
YUI Test
¥
Enhancements
- Updated test results format to include ignored tests, result
types, and names.
- Introduced test result formats in JSON and XML.
- Introduced TestReporter object.
- Removed beta tag.