Skip to content

Commit

Permalink
Merge 07518d0 into ea3760f
Browse files Browse the repository at this point in the history
  • Loading branch information
tormozz48 committed Jul 16, 2015
2 parents ea3760f + 07518d0 commit 9d2bd96
Show file tree
Hide file tree
Showing 12 changed files with 1,556 additions and 567 deletions.
9 changes: 9 additions & 0 deletions src/model/changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Changes.prototype = {
_docs: undefined,
_nodes: undefined,
_libraries: undefined,
_modelChanged: false,

init: function () {
this._docs = new ChangeType('docs');
Expand All @@ -30,6 +31,14 @@ Changes.prototype = {

getLibraries: function () {
return this._libraries;
},

setModelChanged: function () {
this._modelChanged = true;
},

wasModelChanged: function () {
return this._modelChanged;
}
};

Expand Down
3 changes: 1 addition & 2 deletions src/model/nodes/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var util = require('util'),
* @param {Object} version of library
* @constructor
*/
VersionNode = function (parent, version, cacheVersion) {
VersionNode = function (parent, version) {
this.setTitle(version)
.setSource(version)
.processRoute(parent, {
Expand All @@ -26,7 +26,6 @@ var util = require('util'),
.createBreadcrumbs();

this.createMeta(version);
this.cacheVersion = cacheVersion;
};

VersionNode.prototype = Object.create(nodes.dynamic.DynamicNode.prototype);
Expand Down
2 changes: 1 addition & 1 deletion src/targets/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ TargetBase.prototype = {
var _this = this;
return this.getTasks().reduce(function (prev, item) {
return prev.then(function () {
return item(_this);
return item.run ? item.run(_this) : item(_this);
});
}, vow.resolve(_this)).fail(function (err) {
return failTask(_this, err);
Expand Down
Loading

0 comments on commit 9d2bd96

Please sign in to comment.