Skip to content

Commit

Permalink
mix-in parameters passed to app constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed Mar 3, 2017
1 parent 1ee3e7f commit 36a3727
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions viewer/js/viewer/_ControllerBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ define([
) {
return declare(null, {

/**
* Mixes in this apps properties with the passed arguments
* @param {Object} args The properties to mixin
* @return {undefined}
*/
constructor: function (args) {
lang.mixin(this, args);
},

/**
* A method run before anything else, can be inherited by mixins to
* load and process the config sync or async
Expand Down

0 comments on commit 36a3727

Please sign in to comment.