%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/data/old/home/stash/stash/atlassian-stash/static/model/
Upload File :
Create Path :
Current File : //proc/985914/root/data/old/home/stash/stash/atlassian-stash/static/model/person.js

define('model/person', [
    'backbone-brace'
], function(
    Brace
    ) {

    'use strict';

    /**
     * @type {Person}
     */
    return Brace.Model.extend({
        namedAttributes : {
            'emailAddress': 'string',
            'name': 'string'
        },
        idAttribute: 'name',
        initialize: function(){

            // If there isn't an ID attribute in the namedAttributes, set the
            // ID to the value of the property that the idAttribute points to
            if (this.namedAttributes.id == null) {
                this.setId(this.attributes[ this.idAttribute ]);
            }

        }
    });
});

Zerion Mini Shell 1.0