Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

works consistently now

  • Loading branch information...
commit 3ba3b1bd75e05ecaf19714067b470771f4a1a831 1 parent 174ef5c
@thegoleffect thegoleffect authored
Showing with 12 additions and 5 deletions.
  1. +12 −5 lib/assetmanager.js
View
17 lib/assetmanager.js
@@ -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 = {};
Please sign in to comment.
Something went wrong with that request. Please try again.