storkCore

Check-in [50fdee7b6e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Removed inaccurate comment
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:50fdee7b6e8dda10a6b8817401156f7ccdbfa79b
User & Date: setok 2018-01-29 14:43:02
Context
2018-01-29
15:30
Added push() to ListModel for pushing StorkModel objects directly. check-in: 5aecbe5f8e user: setok tags: trunk
14:43
Removed inaccurate comment check-in: 50fdee7b6e user: setok tags: trunk
13:51
Removed some debug output check-in: db6ac76cb2 user: setok tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to list.js.

947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
 * @param {Object} object is any Javascript object. Each property of it will
 *          be made into a StorkModel property.
 *
 *          Calls insertBeforeEvent(sourceModel, model, index) for each
 *          listener, where 'sourceModel' is this ListModel, 'model' is the
 *          added model
 *
 * @param {Number} index is the index where it now resides.
 */
ListModel.pushObject = function(object) {
    var model = StorkModel.createFromObject(object);
    this.items.push(model);
    this.informListeners("insertBeforeEvent",
                         [this, model, this.items.length-1]);
    return model;







<







947
948
949
950
951
952
953

954
955
956
957
958
959
960
 * @param {Object} object is any Javascript object. Each property of it will
 *          be made into a StorkModel property.
 *
 *          Calls insertBeforeEvent(sourceModel, model, index) for each
 *          listener, where 'sourceModel' is this ListModel, 'model' is the
 *          added model
 *

 */
ListModel.pushObject = function(object) {
    var model = StorkModel.createFromObject(object);
    this.items.push(model);
    this.informListeners("insertBeforeEvent",
                         [this, model, this.items.length-1]);
    return model;