HISTORY.md revision ea53cbf2a35b654a03cf6bc52b0b1fa849d5fc86
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt SweeneyYUI Core Change History
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney=======================
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney* Added `Y.Array.dedupe()`, which provides an optimized solution for deduping
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney arrays of strings. When you know an array contains only strings, use `dedupe`,
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney since it's faster than `unique`.
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney* `Y.Lang.isArray()` now uses the native ES5 `Array.isArray()` method when
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney* `Y.Object()` now uses the native ES5 `Object.create()` method when possible.
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney* `Y.Object.keys()` now uses the native ES5 `Object.keys()` method when
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney* Sparse arrays are now handled correctly in the non-native fallback
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney implementations of `Y.Array.each`, `Y.Array.hash`, and `Y.Array.some`.
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney [Ticket #2530376]
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney* Added async:true support to Get, to dispatch scripts/link nodes in parallel.
a32e49a1b841efaed34c635669f85fc44c85cb1dMatt Sweeney NOTE: Order of execution is not guaranteed (it's not required for the YUI
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney Module use case, for which this feature was introduced - to improve performance).
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney onSuccess is called once, after all files are loaded.
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney* Added onProgress callback support to Get, which is useful when dispatching
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney multiple scripts using the [] syntax. onProgress is called when each script
826a755dae58fba1f81a935a378e1ad0d33fc0acMatt Sweeney is done loading.
* Added a `Y.destroy()` method, which destroys the YUI instance.
* Added `Y.Lang.now()`, which returns the current time in milliseconds.
* Added `YUI.GlobalConfig` to allow three stages of configuration
(`YUI.GlobalConfig` --> `YUI_Config` --> instance configs). This is helpful in
* `Y.Array.hash()` no longer skips falsy values.
through `Y.error`.
* `Y.error` invokations can be monitored with the `errorFn` configuration.
`Y.Array.some()`.
* UA refinements for Chrome, Android and other browsers/platforms.
* The `YUI.add()` callback now gets the module name as the second parameter for
* `Y.guid()` generates identifiers that are safe to use as HTML attributes.
* Improved persistent messaging for missing modules/functionality.
* Fixed `Y.UA.os`.
* `Y.cached` accepts a parameter to refresh a cached value.
`yui.js`.
* `Y.stamp` now accepts a `readOnly` parameter to be used when you are only
* `Y.stamp` defends against stamping items that can't be stamped.
* Added to `Y.Object`: `values()`, `hasKey()`, `hasValue()`, `size()`,
* `Y.use` calls are queued during dynamic loading.
* Added `Y.cached` for function memoizing
* Added `numericSort` to `Y.Array`.
* Added `Y.Lang.type` (`typeof` abstraction) and refactored some 'is' methods to
* `Y.namespace` reverted to scrub `YAHOO` out if included as the first level of
* Added `Y.Array.some()`.