Sha256: 438efbfebb359786dee74c1477471a46d3fd9e43c4a06cb225f6406d02d62c8c

Contents?: true

Size: 1.25 KB

Versions: 7

Compression:

Stored size: 1.25 KB

Contents

/**
 * @class ExtMVC.Environment
 * @extends Ext.util.Observable
 * Represents an application in which to load an application. This is used by the
 * environment files inside the public/config and public/config/environments directories
 * 
 */
ExtMVC.Environment = Ext.extend(Ext.util.Observable, {

  constructor: function(config) {
    config = config || {};
    
    Ext.apply(this, config, {
      //TODO: jsdoc these defaults
      pluginsDir  : '../vendor/plugins',
      libDir      : '../lib',
      configDir   : '../config',
      overridesDir: '../config/overrides',
      appDir      : '../app',
      vendor      : ['mvc'],
      mvcFilename : 'ext-mvc-all-min',
      config      : ['app/App', 'config/routes'],
      
      /**
       * @property stylesheets
       * @type Array
       * The stylesheets to load for this app (defaults to just ext-all)
       */
      stylesheets: ['ext-all']
    });
    
    ExtMVC.Environment.superclass.constructor.apply(this, arguments);
  },
  
  /**
   * Updates this environment by applying the updates argument to itself
   * @param {Object} updates Any updated values to apply to the Environment
   * @return {ExtMVC.Environment} The environment object
   */
  update: function(updates) {
    Ext.apply(this, updates);
  }
});

Version data entries

7 entries across 6 versions & 1 rubygems

Version Path
extjs-mvc-0.4.0.k test/app/vendor/extjs-mvc/lib/Environment.js
extjs-mvc-0.4.0.k lib/extjs-mvc/src/lib/Environment.js
extjs-mvc-0.4.0.f lib/src/lib/Environment.js
extjs-mvc-0.4.0.e lib/vendor/lib/Environment.js
extjs-mvc-0.4.0.d lib/vendor/lib/Environment.js
extjs-mvc-0.4.0.b lib/js/lib/Environment.js
extjs-mvc-0.4.0.a lib/js/lib/Environment.js