Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit 2a1a71c

Browse files
revised XHR approach... moved to asynchronous (since we're sequentially loading the files, we don't have to worry about making synchronous calls)
1 parent 45b9535 commit 2a1a71c

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/eCSStender.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Function: eCSStender()
33
Author: Aaron Gustafson (aaron at easy-designs dot net)
44
Creation Date: 2006-12-03
5-
Version: 1.2.6.6
5+
Version: 1.2.6.7
66
Homepage: http://eCSStender.org
77
License: MIT License (see homepage)
88
------------------------------------------------------------------------------*/
@@ -125,7 +125,7 @@ License: MIT License (see homepage)
125125
// eCSStender Object
126126
eCSStender = {
127127
name: ECSSTENDER,
128-
version: '1.2.6.6',
128+
version: '1.2.6.7',
129129
fonts: [],
130130
pages: {},
131131
at: {},
@@ -1259,15 +1259,9 @@ License: MIT License (see homepage)
12591259
else
12601260
{
12611261
__xhr = new XHR();
1262+
__xhr.open( 'GET', file, TRUE );
12621263
__xhr.onreadystatechange = xhrHandler;
1263-
__xhr.open( 'GET', file, FALSE );
12641264
__xhr.send( NULL );
1265-
try {
1266-
if ( __xhr.onreadystatechange != xhrHandler )
1267-
{
1268-
__xhr.onreadystatechange = xhrHandler();
1269-
}
1270-
} catch ( e ) { }
12711265
}
12721266
}
12731267
else
@@ -1308,6 +1302,7 @@ License: MIT License (see homepage)
13081302
__modified[fingerprint( __stylesheets[__s].actual_path )] = __xhr.getResponseHeader('Last-Modified');
13091303
}
13101304
__s++;
1305+
__xhr.onreadystatechange = EMPTY_FN;
13111306
getCSSFiles();
13121307
}
13131308
}

0 commit comments

Comments
 (0)