Author: ygrego Date: 2015-03-12 10:52:47 +0000 (Thu, 12 Mar 2015) New Revision: 948 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/948 Log: Deletion of file Collection Removed: oipf/js/lib/Collection.js Deleted: oipf/js/lib/Collection.js =================================================================== --- oipf/js/lib/Collection.js 2015-03-12 10:48:11 UTC (rev 947) +++ oipf/js/lib/Collection.js 2015-03-12 10:52:47 UTC (rev 948) @@ -1,28 +0,0 @@ -/*--------------------------------------------TO-DO: True implementation of a collection---------------------------------------- -* Description: The Collection< T > class is a parameterized class whose instances are (possibly zero-length) collections of values of -* type T. The properties and methods defined below SHALL be present on any instance of a Collection< T > class. -* Instances of a Collection< T > class SHALL support the use of array notation to access objects in the collection. -* Instances of a Collection< T > class SHALL be considered to be immutable, except by APIs defined on the collection. -* Attempts to insert items into instances of a Collection< T > class using array notation SHALL fail. -*/ -var Collection = Array.extend({ - /* - * Description: - * Return the item at position index in the collection, or undefined if no item is present at that position. - * - * Argument: - * -index: The index of the item that SHALL be returned - * - */ - item: function(index) { - - return (this.length==0)? null: (this)[index]; - }, - - init: function(elements) { - if (elements) { - this.push(elements); - } - } - -}); \ No newline at end of file
participants (1)
-
ygregoï¼ users.nuiton.org