Author: ygrego Date: 2015-04-27 15:13:51 +0000 (Mon, 27 Apr 2015) New Revision: 1271 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1271 Log: Modification of the object constructor. Modified: oipf/js/impl/model/Collection.js Modified: oipf/js/impl/model/Collection.js =================================================================== --- oipf/js/impl/model/Collection.js 2015-04-27 15:09:08 UTC (rev 1270) +++ oipf/js/impl/model/Collection.js 2015-04-27 15:13:51 UTC (rev 1271) @@ -6,10 +6,14 @@ var Collection = Array.extend({ - item: function(index) { - return this[index]; - } + init: function() { + this.push.apply(this, arguments); + }, + item: function(index) { + return this[index]; + } + });
participants (1)
-
ygregoï¼ users.nuiton.org