/* Copyright (c) 2009, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 3.0.0 build: 1549 */ YUI.add('collection',function(Y){var L=Y.Lang,Native=Array.prototype,A=Y.Array;A.lastIndexOf=(Native.lastIndexOf)?function(a,val){return a.lastIndexOf(val);}:function(a,val){for(var i=a.length-1;i>=0;i=i-1){if(a[i]===val){break;}} return i;};A.unique=function(a,sort){var b=a.slice(),i=0,n=-1,item=null;while(i