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

This commit is contained in:
cloudhead 2010-11-26 17:43:26 -05:00
parent c58d8aa156
commit 868130e3a3

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