History log of /yui3/src/yui/js/yui-array.js
Revision Date Author Comments Expand
d5f407f728b461f7362049b93dd6754a1ad8a24f 06-Feb-2012 Ryan Grove <ryan@wonko.com>

Make Y.Array.indexOf()'s fromIndex param fully ES5-compatible.

97ab26e5f393dc5993135ae207ccc137ce3c7008 05-Feb-2012 Ryuichi Okumura <okuryu@okuryu.com>

Added fromIndex argument to Array.indexOf() method.

3e4a3c30997cfa913fabd7b346e3a71388441bed 12-Jan-2012 Ryan Grove <ryan@wonko.com>

Detect non-native ES5 shims and fall back to our own. This avoids potential issues with libraries that shim native objects with broken implementations, like older Prototype and MooTools, and certain Twitter widgets. The technique used to detect native methods isn't perfect, but works in all modern browsers and has minimal consequences if it fails.

c766f402e7da216af1abd318198031ce3d707268 25-Aug-2011 Ryan Grove <ryan@wonko.com>

Support sparse arrays correctly in the non-native Y.Array.indexOf() and Y.Array.lastIndexOf(). [Fixes #2530966]

9f141fd009d9c3960fc5e59c9f80d42643b8549e 24-Aug-2011 Ryan Grove <ryan@wonko.com>

Alphabetize methods.

c329316f92fdab3b92802fb2182e5b5f543d295e 12-Aug-2011 Dav Glass <davglass@gmail.com>

Fixes #2530913 - Minor doc tweaks Added @main tags to modules that YUIDoc failed to find the proper main module description. No build was done, only modified source files.

/yui3/sandbox/dd/js/constrain.js /yui3/src/autocomplete/js/autocomplete-base.js /yui3/src/charts/js/Chart.js /yui3/src/collection/js/arraylist-add.js /yui3/src/collection/js/arraylist-filter.js /yui3/src/dataschema/js/dataschema-base.js /yui3/src/datasource/js/datasource-local.js /yui3/src/datatable/js/datatable-base.js /yui3/src/datatype/js/datatype-date-format.js /yui3/src/dd/js/constrain.js /yui3/src/dom/js/dom-core.js /yui3/src/dom/js/selector-css2.js /yui3/src/event/js/event-dom.js /yui3/src/graphics/js/BaseGraphic.js /yui3/src/history/js/history-base.js /yui3/src/io/js/io-base.js /yui3/src/json/js/parse.js /yui3/src/loader/js/loader.js /yui3/src/node/js/node-core.js /yui3/src/querystring/js/querystring-parse.js /yui3/src/recordset/js/recordset-base.js /yui3/src/resize/js/resize-base.js /yui3/src/slider/js/range-slider.js /yui3/src/widget/js/Widget.js yui-array.js
cc993d3cace28dec43cfc6f55b41961e90e76ba9 23-Jul-2011 Ryan Grove <ryan@wonko.com>

API doc fixes and improvements.

9825f8a484ba80b5b1ee965e60e0f0d4ee090f09 23-Jun-2011 Dav Glass <davglass@gmail.com>

Doc Updates, no code changed

ed3e7eff04d0fa1517079546143bad94910ff05c 22-Jun-2011 Dav Glass <davglass@gmail.com>

Doc Updates, no code changed

f0522e4a4b675ec0a36ca5eef4e901433c8bbcc9 21-Jun-2011 Dav Glass <davglass@gmail.com>

Doc Updates, no code changed

701eda2eb4521a1f3fb46f0d6aa587433a9ccbb7 01-Jun-2011 Ryan Grove <ryan@wonko.com>

Handle sparse arrays correctly in array methods. [Fixes #2530376] The non-native implementations of the following methods were modified to handle sparse arrays correctly: - Y.Array.each - Y.Array.every - Y.Array.filter - Y.Array.find - Y.Array.hash - Y.Array.map - Y.Array.reduce - Y.Array.some

625b4c3dc4212039b3cd39abc6f05949722ea23b 27-May-2011 Ryan Grove <ryan@wonko.com>

Add a @since tag to Y.Array.dedupe.

424a2a4dfca6e9c03da66f158c177ef2a4826a9d 27-May-2011 Ryan Grove <ryan@wonko.com>

Add Y.Array.dedupe(). This method provides a fast deduping implementation for arrays that contain only strings. To dedupe an array that may contain values that aren't strings, use Y.Array.unique().

66abd057e65a9ca9398fbce05417fd1c6a99a5a8 14-May-2011 Ryan Grove <ryan@wonko.com>

Move Y.Array.forEach alias to yui-array.js where it belongs.

da799d8237213f20945b3e8edc5c211500f93075 08-May-2011 Ryan Grove <ryan@wonko.com>

Comment fix. I changed my mind about skipping falsy keys but forgot to update the doc comment.

0a1f30d712713e39834369dc0781ada8459ea5d2 08-May-2011 Ryan Grove <ryan@wonko.com>

Minor byte shaving and readability tweaks, plus API doc improvements.

f5ae9beb0d4988b6817bafde07a3a5bd1cc2731b 07-May-2011 Ryan Grove <ryan@wonko.com>

Small performance improvement for Y.Array.test(). There's no need to call Y.Lang.isObject() when obj is a real array, so we can avoid that function call for a small performance boost. http://jsperf.com/y-array-test

10f15e6d01fb5a16131e11a283f2792ac030a83c 07-May-2011 Ryan Grove <ryan@wonko.com>

Improve the readability of Y.Array() and its API docs.

02b581ebfa9969c32cac8cd44ebe35e0e47f00ce 06-Oct-2010 Adam Moore <adamoore@yahoo-inc.com>

doc tweak [fixes #2529383]. debug code removal.

60de33a6560b784a96e41ca3998bfff78645e7cc 04-Oct-2010 Adam Moore <adamoore@yahoo-inc.com>

doc tweak [fixes #2529383]. debug code removal.

0bc189b2acbd7c4b5af63eded0c4289e224676b7 27-Sep-2010 Adam Moore <adamoore@yahoo-inc.com>

doc/lint cleanup

/yui3/build/event/event-delegate-min.js /yui3/build/event/event-focus-min.js /yui3/build/event/event-min.js /yui3/build/yui/features-debug.js /yui3/build/yui/features-min.js /yui3/build/yui/features.js /yui3/build/yui/get-debug.js /yui3/build/yui/get-min.js /yui3/build/yui/get.js /yui3/build/yui/rls-debug.js /yui3/build/yui/rls.js /yui3/build/yui/yui-base-debug.js /yui3/build/yui/yui-base-min.js /yui3/build/yui/yui-base.js /yui3/build/yui/yui-debug.js /yui3/build/yui/yui-later-debug.js /yui3/build/yui/yui-later-min.js /yui3/build/yui/yui-later.js /yui3/build/yui/yui-log-debug.js /yui3/build/yui/yui-log-min.js /yui3/build/yui/yui-log.js /yui3/build/yui/yui-min.js /yui3/build/yui/yui-throttle-debug.js /yui3/build/yui/yui-throttle-min.js /yui3/build/yui/yui-throttle.js /yui3/build/yui/yui.js features.js get.js queue-base.js rls.js yui-array.js yui-core.js yui-lang.js yui-later.js yui-log.js yui-object.js yui-throttle.js yui.js
b39897a381c2203466da5568bfd2862a54a81311 15-Sep-2010 Adam Moore <adamoore@yahoo-inc.com>

lint/doc cleanup

/yui3/build/loader/loader-base-debug.js /yui3/build/loader/loader-base-min.js /yui3/build/loader/loader-base.js /yui3/build/loader/loader-debug.js /yui3/build/loader/loader-min.js /yui3/build/loader/loader-rollup-debug.js /yui3/build/loader/loader-rollup-min.js /yui3/build/loader/loader-rollup.js /yui3/build/loader/loader-yui3-min.js /yui3/build/loader/loader.js /yui3/build/yui/features-debug.js /yui3/build/yui/features.js /yui3/build/yui/get-debug.js /yui3/build/yui/get.js /yui3/build/yui/intl-base-debug.js /yui3/build/yui/intl-base.js /yui3/build/yui/rls-debug.js /yui3/build/yui/rls.js /yui3/build/yui/yui-base-debug.js /yui3/build/yui/yui-base-min.js /yui3/build/yui/yui-base.js /yui3/build/yui/yui-debug.js /yui3/build/yui/yui-later-debug.js /yui3/build/yui/yui-later.js /yui3/build/yui/yui-log-debug.js /yui3/build/yui/yui-log.js /yui3/build/yui/yui-min.js /yui3/build/yui/yui-throttle-debug.js /yui3/build/yui/yui-throttle.js /yui3/build/yui/yui.js /yui3/sandbox/loader/2in3.html /yui3/sandbox/loader/2in3_datatable.html /yui3/sandbox/loader/2in3_rte.html /yui3/sandbox/loader/load.html /yui3/src/loader/js/loader.js /yui3/src/loader/js/meta.js /yui3/src/loader/js/rollup.js _module.js features.js get.js intl-base.js queue-base.js rls.js yui-array.js yui-core.js yui-lang.js yui-later.js yui-log.js yui-object.js yui-throttle.js yui-ua.js yui.js
22f764173ae182052991f514d1f82bfc2251968e 30-Aug-2010 Adam Moore <adamoore@yahoo-inc.com>

Y.Array.hash() doesn't skip falsy values

18d653c7783da2e23e745feeb92c3d82570c7470 30-Aug-2010 Adam Moore <adamoore@yahoo-inc.com>

Revert "Y.Array.hash() doesn't skip falsy values." This reverts commit f59b981b6346d1216667247834fad809f1c93937.

f59b981b6346d1216667247834fad809f1c93937 30-Aug-2010 Adam Moore <adamoore@yahoo-inc.com>

Y.Array.hash() doesn't skip falsy values.

b238e52ac22e07b0798ae7b0f63f3fe0e8f9bf95 22-Feb-2010 Adam Moore <adamoore@yahoo-inc.com>

Module group support, each group can specify the base path and combo spec for the modules in the group. YUI will automically attempt to fetch new dependencies after modules have been dynamically loaded. Gallery items can be requested without supporting metadata and without 'using' the gallery item's dependencies.

43692b3f865f1b1c970aedb2b96392482bd1fe3e 06-Jan-2010 Adam Moore <adamoore@yahoo-inc.com>

Y.Array cleanup

7dc268cc10f78c1c8a5df1d94ce93680e20a6f09 06-Jan-2010 Adam Moore <adamoore@yahoo-inc.com>

Y.Array.test does not pass functions [fixes #2528345].

ff8e78b59d58eeca64349dff85a486594bbfa65b 06-Jan-2010 Adam Moore <adamoore@yahoo-inc.com>

Fixed the Y.Array HTMLElementCollection fallback in IE to use the start index. [fixed #2528504].

73e6f9d153f525f2cd1337b816f6b030d46f997e 31-Aug-2009 isaacs <i@foohack.com>

Rollback additional map/reduce functionality which is already provided by collection.js.

0e53673b46e3f966b09e298014b25eddc2f34367 31-Aug-2009 isaacs <i@foohack.com>

Fixed YArray.reduce. There was a problem when an accumulator was not passed in, because "undefined" is not the same as not passing in an argument.

d8c505c303d22fc17c1b7aef7cf6d9bb9709f5f0 31-Aug-2009 isaacs <i@foohack.com>

Add map/reduce to YArray

efa57736d44cf446f1661497a8645bd388b493fb 26-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

API update for each/some methods [fixes #2528213].

2c5ce90c334a2d0f18474e85c93b424b6ec9daaa 13-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

queue-base is now part of yui-base. queue-run and queue-promote are independent modules.

/yui3/build/loader/loader-debug.js /yui3/build/loader/loader-min.js /yui3/build/loader/loader.js /yui3/build/queue-promote/queue-promote-debug.js /yui3/build/queue-promote/queue-promote-min.js /yui3/build/queue-promote/queue-promote.js /yui3/build/queue-run/queue-run-debug.js /yui3/build/queue-run/queue-run-min.js /yui3/build/queue-run/queue-run.js /yui3/build/yui/yui-base-debug.js /yui3/build/yui/yui-base-min.js /yui3/build/yui/yui-base.js /yui3/build/yui/yui-debug.js /yui3/build/yui/yui-min.js /yui3/build/yui/yui.js /yui3/sandbox/yui/dps+wireless.pdf /yui3/sandbox/yui/log.html /yui3/src/loader/js/loader.js /yui3/src/queue-promote/README /yui3/src/queue-promote/build.properties /yui3/src/queue-promote/build.xml /yui3/src/queue-promote/js/queue-promote.js /yui3/src/queue-promote/tests/example.html /yui3/src/queue-promote/tests/io_success.txt /yui3/src/queue-promote/tests/io_timeout.php /yui3/src/queue-promote/tests/queue.html /yui3/src/queue-run/README /yui3/src/queue-run/build.properties /yui3/src/queue-run/build.xml /yui3/src/queue-run/js/queue-run.js /yui3/src/queue-run/tests/example.html /yui3/src/queue-run/tests/io_success.txt /yui3/src/queue-run/tests/io_timeout.php /yui3/src/queue-run/tests/queue.html /yui3/src/queue/base.properties /yui3/src/queue/base.xml /yui3/src/queue/build.properties /yui3/src/queue/promote.xml /yui3/src/yui/README /yui3/src/yui/build.properties _module.js queue-base.js yui-array.js yui-core.js yui-init.js yui-lang.js yui-object.js yui-ua.js yui.js /yui3/src/yui/yui-base.properties
4778ff543a041ac356d6e661cc9b66c3fafa2092 12-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

API submodule breakdown

ae1f7ed14ee90e037ce01ce4384fda0a7102b4f2 08-Jul-2009 Adam Moore <adamoore@yahoo-inc.com>

Fixed Y.Array.indexOf native fork. [fixes #2528021]. Removed 'cached' identifier from the anonymous wrapper function in Y.cached.

87d6b0a14cce52c4faa4b78fc9878eb553dab0d5 17-Jun-2009 Adam Moore <adamoore@yahoo-inc.com>

YUI API update [fixes #2526015]

4bc20d8e02a761c165dfc309b5835a184bae8c9e 11-Jun-2009 Adam Moore <adamoore@yahoo-inc.com>

Get guid fixed [fixes #2527970].

0263b559dcd210a19a22676b25ecbcac81d1692c 05-Jun-2009 Adam Moore <adamoore@yahoo-inc.com>

Updated delegate payload: the originalTarget is the delegation container. the target continues to be the first element that matches the delegation spec. The actual target is assigned to the originalTarget property. A NodeList containing all elements that match the delegation spec is assigned to the details field. Also: more type parse an cached performance tweaks.

3c245663d1bfadc0536b538247884c0667cc9313 30-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

Put Y.Array.some back into the core (removed from collection). Removed test's dependency on collection. Fixed collection test to work against the local build.

401d3c02d890d39b7a48d94e0a9c1830f8aade42 21-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

Split out custom event and DOM event facades. fixes #2527852

b1cd8b30205189b0b808fc2c4c93a184a22e24cd 20-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

Array.each protects against bogus input array

21a04e4a1f3596ab3a9e17fffa80b45eace6b29a 09-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

Array.test allows functions to be tested. fixes #2527835

b45133051f787045386e6848ced7996daffd97e5 07-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

Array.each catches an IE error when trying to slice HTMLElement collections

eb86457f85638a9eb7c4d5f84eb367d24061abfb 01-Apr-2009 Adam Moore <adamoore@yahoo-inc.com>

Added Array.numericSort [ fixes bug #2526013 ]

6074a8c5781591c812fb90a2ca3cae0300d303b9 06-Feb-2009 Adam Moore <adamoore@yahoo-inc.com>

moved some, lastIndexOf, unique to collection package

a3e6db667fcd33ac653355e76d3660ecf232193b 06-Feb-2009 Jeff Craig <foxxtrot@foxxtrot.net>

Add methods: lastIndexOf, Unique Fix indexOf to check for native implemenation first

ba2701ee03e94104edf19911ee0989f8cee11088 06-Feb-2009 Adam Moore <adamoore@yahoo-inc.com>

refactor

c4e6d94ea429e473a6732b6eb5e0fc980e822881 04-Feb-2009 Adam Moore <adamoore@yahoo-inc.com>

Added closures to prevent local variable collisions

b0cec89bbebe421fc30be36efa0e1dafbe37351e 21-Jan-2009 gmoothart <gmoothart@gmail.com>

completed incomplete documentation, and fixed bug: some should return a boolean, not the Y instance!

1e1c9475aa6e07779cbc8cf2828c1ae60463bf5b 21-Jan-2009 gmoothart <gmoothart@gmail.com>

fixed typo - some should test for itself on array, not forEach

1b298c6f0ef597aa4ab0b8bcb25430b6c9a87749 14-Jan-2009 Adam Moore <adamoore@yahoo-inc.com>

yui reorg, updated build and organization, get and loader source moved to yui src dir

/yui3/build/get/get-debug.js /yui3/build/get/get.js /yui3/build/yui-base/yui-base-debug.js /yui3/build/yui-base/yui-base-min.js /yui3/build/yui-base/yui-base.js /yui3/build/yui/yui-debug.js /yui3/build/yui/yui-min.js /yui3/build/yui/yui.js /yui3/sandbox/yui/2 /yui3/sandbox/yui/assets/get.php /yui3/sandbox/yui/assets/post.php /yui3/sandbox/yui/assets/sync.php /yui3/sandbox/yui/assets/weather.php /yui3/sandbox/yui/augment2.html /yui3/sandbox/yui/bubbledd.html /yui3/sandbox/yui/ce.html /yui3/sandbox/yui/clone.html /yui3/sandbox/yui/dd.html /yui3/sandbox/yui/do.html /yui3/sandbox/yui/dom.html /yui3/sandbox/yui/each.html /yui3/sandbox/yui/event-compat.html /yui3/sandbox/yui/get.html /yui3/sandbox/yui/halt.html /yui3/sandbox/yui/load.html.orig /yui3/sandbox/yui/onavail.html /yui3/sandbox/yui/profiler.html /yui3/sandbox/yui/state.html /yui3/sandbox/yui/ua.html /yui3/sandbox/yui/unsubscribe.html /yui3/sandbox/yui/use.html /yui3/sandbox/yui/xhr.html /yui3/sandbox/yui/yui.html /yui3/src/get/README /yui3/src/loader/README /yui3/src/yui/README /yui3/src/yui/build.properties /yui3/src/yui/build.xml /yui3/src/yui/get.properties /yui3/src/yui/get.xml get.js loader.js yui-array.js yui-base.js yui-core.js yui-init.js yui-lang.js yui-later.js yui-log.js yui-object.js yui-ua.js yui.js /yui3/src/yui/loader.properties /yui3/src/yui/loader.xml /yui3/src/yui/yui-array.js /yui3/src/yui/yui-base.properties /yui3/src/yui/yui-base.xml /yui3/src/yui/yui-core.js /yui3/src/yui/yui-dump.js /yui3/src/yui/yui-init.js /yui3/src/yui/yui-lang.js /yui3/src/yui/yui-later.js /yui3/src/yui/yui-log.js /yui3/src/yui/yui-object.js /yui3/src/yui/yui-ua.js /yui3/util/yui/README /yui3/util/yui/build.properties /yui3/util/yui/build.xml /yui3/util/yui/build/yui-debug.js /yui3/util/yui/build/yui-min.js /yui3/util/yui/build/yui.js /yui3/util/yui/src/js/yui-array.js /yui3/util/yui/src/js/yui-compat.js /yui3/util/yui/src/js/yui-core.js /yui3/util/yui/src/js/yui-dump.js /yui3/util/yui/src/js/yui-init.js /yui3/util/yui/src/js/yui-lang.js /yui3/util/yui/src/js/yui-log.js /yui3/util/yui/src/js/yui-object.js /yui3/util/yui/src/js/yui-substitute.js /yui3/util/yui/src/js/yui-ua.js /yui3/util/yui/src/js/yui.js