Skip to content

Commit

Permalink
modify to extend right
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Stefan committed Jan 12, 2016
1 parent affb0a0 commit b28f3d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions ember-addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = EmberAddon;
function EmberAddon() {
var args = [];
var options = {};
console.log("Addon init")

for (var i = 0, l = arguments.length; i < l; i++) {
args.push(arguments[i]);
Expand Down
7 changes: 5 additions & 2 deletions ember-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var mergeTrees = function(inputTree, options) {
*/
var EmberAppBundle = function(){

console.log("App init")
EmberApp.apply(this,arguments);

var options;
Expand All @@ -49,9 +50,13 @@ var EmberAppBundle = function(){

};

EmberAppBundle.prototype = Object.create(EmberApp.prototype);
EmberAppBundle.prototype.constructor = EmberAppBundle;


EmberAppBundle.prototype.javascript = function(){

console.log("Right call")
var applicationJs = this.appAndDependencies();
var legacyFilesToAppend = this.legacyFilesToAppend;
var appOutputPath = this.options.outputPaths.app.js;
Expand Down Expand Up @@ -160,8 +165,6 @@ EmberAppBundle.prototype.javascript = function(){
});
}

EmberAppBundle.prototype = Object.create(EmberApp.prototype);
EmberAppBundle.prototype.constructor = EmberAppBundle;



Expand Down

0 comments on commit b28f3d6

Please sign in to comment.