~ahasenack/lazr-js/lazr-js-11.03-packaging

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/collection/arraylist-add-min.js

  • Committer: Sidnei da Silva
  • Date: 2010-04-08 14:44:59 UTC
  • mfrom: (166.8.13 yui-3.1.0)
  • Revision ID: sidnei.da.silva@canonical.com-20100408144459-qozybvnrgr7iee7k
Merged yui-3.1.0 [r=therve,rockstar] [f=558457].

Updates lazr-js to use YUI 3.1.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
 
3
Code licensed under the BSD License:
 
4
http://developer.yahoo.com/yui/license.html
 
5
version: 3.1.0
 
6
build: 2026
 
7
*/
 
8
YUI.add("arraylist-add",function(A){A.mix(A.ArrayList.prototype,{add:function(D,C){var B=this._items;if(A.Lang.isNumber(C)){B.splice(C,0,D);}else{B.push(D);}return this;},remove:function(D,C,E){E=E||this.itemsAreEqual;for(var B=this._items.length-1;B>=0;--B){if(E.call(this,D,this.item(B))){this._items.splice(B,1);if(!C){break;}}}return this;},itemsAreEqual:function(C,B){return C===B;}});},"3.1.0",{requires:["arraylist"]});
 
 
b'\\ No newline at end of file'