Permalink
Browse files

Fixed dependencies based on timestamp.

Reviewed by me.
  • Loading branch information...
1 parent 10efb0f commit 25d6185589950baa4d7dce228755dadb4bc041d7 @tolmasky tolmasky committed Sep 25, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/jake/filetask.js
  2. +1 −1 lib/jake/task.js
@@ -59,7 +59,7 @@ FileTask.prototype.outOfDate = function(aTimestamp)
{
var application = this.application();
- this._prerequisites.some(function(aTaskName)
+ return this._prerequisites.some(function(aTaskName)
{
return application.lookupTask(aTaskName).timestamp() > aTimestamp;
}, this);
View
@@ -178,7 +178,7 @@ Task.prototype.timestamp = function()
return Math.max.apply(null, this._prerequisites.map(function(/*String*/ aPrerequisiteName)
{
- return this._application.lookupTask(aPrerequisiteName).timestamp();
+ return this._application.lookupTask(aPrerequisiteName, this._scope).timestamp();
}, this));
}

0 comments on commit 25d6185

Please sign in to comment.