Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Add jsDoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jluis.cabrera committed Oct 6, 2016
1 parent b1a08e5 commit f3dfb2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
});

api.tasks.on.add(scope, function(task) {
// isDraw = true - Do not remove dependencies from Task model when toTask is not defined
manager.addDependenciesFromTask(task, true);
});

Expand Down
2 changes: 2 additions & 0 deletions src/plugins/dependencies/dependenciesManager.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
* Add all dependencies defined from a task. Dependencies will be added only if plugin is enabled.
*
* @param task
* @param isDraw [boolean] - true: Do not remove dependency from Task model
*/
this.addDependenciesFromTask = function(task, isDraw) {
if (this.pluginScope.enabled) {
Expand Down Expand Up @@ -95,6 +96,7 @@
*
* @param task Task defining the dependency.
* @param model Model object for the dependency.
* @param isDraw [boolean] - true: Do not remove dependency from Task model
*/
this.addDependency = function(task, model, isDraw) {
var dependency = new Dependency(this, task, model);
Expand Down

0 comments on commit f3dfb2f

Please sign in to comment.