don't crash if there's no 'lastModified' header

This commit is contained in:
cloudhead
2010-11-26 17:43:26 -05:00
parent aeb4680232
commit 40c7ab81a9

View File

@@ -125,7 +125,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
}
xhr(sheet.href, sheet.type, function (data, lastModified) {
if (!reload && styles &&
if (!reload && styles && lastModified &&
(new(Date)(lastModified).valueOf() ===
new(Date)(styles.timestamp).valueOf())) {
// Use local copy