Skip to content

Commit

Permalink
works consistently now
Browse files Browse the repository at this point in the history
  • Loading branch information
thegoleffect committed Aug 27, 2011
1 parent 174ef5c commit 3ba3b1b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions lib/assetmanager.js
Expand Up @@ -148,12 +148,19 @@ module.exports = function assetManager (settings) {

for (var i = 0, l = contents.length; i < l; i++) {
var file = contents[i];
if (typeof file == "string"){
continue;
}
if (typeof file.modified != "undefined"){
file.modified = new Date();
}
if (Object.prototype.toString.call(file.modified) === "[object Date]" && !isNaN(file.modified)){

} else {
file.modified = new Date();
}
if (!lastModified || lastModified.getTime() < file.modified.getTime()) {
if (typeof file.modified != "undefined" && file.modified == null){
lastModified = new Date();
} else {
lastModified = file.modified;
}
lastModified = file.modified;
}
if (!group.preManipulate) {
group.preManipulate = {};
Expand Down

0 comments on commit 3ba3b1b

Please sign in to comment.