unageanu/container-js

View on GitHub
samples/hello-world/scripts/app/model.js

Summary

Maintainability
A
3 hrs
Test Coverage
define(["utils/observable"], function(Observable){
    
    "use strict";
    
    /**
     * @class
     */
    var Model = function() {};
    
    Model.prototype = new Observable();
    
    /**
     * @public
     */
    Model.prototype.initialize = function() {
        this.fire( "updated", { 
            property: "message", 
            value :"hello world."
        });
    };
    
    return Model;
});