view app/model/Base.js @ 356:166203f7119d

Added Changes
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 13 Aug 2013 12:37:03 +0200
parents 7f5f74e62658
children 8bc067b5f9c5
line wrap: on
line source
/**
 * Base class for models
 */
Ext.define('Lada.model.Base', {
    extend: 'Ext.data.Model',
    requires: ['Lada.lib.Helpers'],
    /**
     * Helper function to build an ID which is used in the proxy calls. This
     * function is a workaround for
     * https://roundup-intern.intevation.de/bfs/issue30
     * as some items can not be identified with a singe id.
     */
    getEidi: function() {
        return "/" + idProperty;
    }
});

http://lada.wald.intevation.org