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

Commit 027cc9b

Browse files
Added ability for extensions to dynamically redefine themselves
Cleaned up some leaky variables (thanks to EmissionsTest.js) Removed embedded QUnit in favor of making it a submodule Added EmissionsTest.js as a submodule to catch variable leaks (/test/leaks.html) Moved jQuery to the vendors directory
1 parent 368e813 commit 027cc9b

File tree

14 files changed

+253
-5346
lines changed

14 files changed

+253
-5346
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "vendors/QUnit"]
2+
path = vendors/QUnit
3+
url = git://github.com/jquery/qunit.git
4+
[submodule "vendors/EmissionsTest"]
5+
path = vendors/EmissionsTest
6+
url = git://github.com/easy-designs/EmissionsTest.js.git

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
*v1.2.6.1* (2010-07-20)
2+
* Added ability for extensions to dynamically redefine themselves
3+
* cleaned up some leaky variables (thanks to EmissionsTest.js)
4+
15
*v1.2.6* (2010-07-13)
26
* overhauled eCSStender::isSupported() so it can accept
37
- assignment of support info into the cache and

min/eCSStender.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/eCSStender.js

Lines changed: 20 additions & 14 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
5+
Version: 1.2.6.1
66
Homepage: http://eCSStender.org
77
License: MIT License (see homepage)
88
------------------------------------------------------------------------------*/
@@ -129,7 +129,7 @@ License: MIT License (see homepage)
129129
// eCSStender Object
130130
eCSStender = {
131131
name: ECSSTENDER,
132-
version: '1.2.6',
132+
version: '1.2.6.1',
133133
fonts: [],
134134
pages: {},
135135
at: {},
@@ -201,7 +201,7 @@ License: MIT License (see homepage)
201201
{
202202
if ( __no_cache || __local ){ return; }
203203
// check the xhr headers against what we read from the cache
204-
var key, cached = __local_cache.xhr, i=j=0;
204+
var key, cached = __local_cache.xhr, i=0, j=0;
205205
eCSStender.cache = TRUE;
206206
for ( key in __modified )
207207
{
@@ -368,17 +368,18 @@ License: MIT License (see homepage)
368368
properties = extractProperties( e[1], e[2], extension[PROPERTIES] );
369369
result = extension[CALLBACK]( e[2], properties, e[1], specificity );
370370
// allow on-the-fly re-definition of callback
371-
// if ( is( result, FUNCTION ) )
372-
// {
373-
// __eCSStensions[e[0]][CALLBACK] = result;
374-
// }
371+
if ( is( result, FUNCTION ) )
372+
{
373+
__eCSStensions[e[0]][CALLBACK] = result;
374+
}
375375
__eCSStensions[e[0]][PROCESSED].push( selector_id );
376376
}
377377
}
378378
}
379379
function triggerOnCompletes()
380380
{
381-
for ( var o = __on_complete.length-1; o >= 0; o-- )
381+
var o = __on_complete.length;
382+
while ( o-- )
382383
{
383384
__on_complete[o]();
384385
}
@@ -495,8 +496,9 @@ License: MIT License (see homepage)
495496
actual_path = stylesheet.actual_path,
496497
css_path = actual_path || stylesheet.href,
497498
parent = stylesheet.parentStyleSheet,
498-
curr_path, path_last_slash, file_name,
499-
parent_path = prefix = EMPTY;
499+
parent_path = EMPTY,
500+
prefix = EMPTY,
501+
curr_path, path_last_slash, file_name;
500502
if ( ! css_path ) { css_path = NULL; }
501503
// we only want sheets
502504
if ( ! actual_path &&
@@ -743,7 +745,8 @@ License: MIT License (see homepage)
743745
}
744746
function collapseAtMedia( css, match, id )
745747
{
746-
media = match[1].split(REGEXP_COMMA);
748+
var
749+
media = match[1].split(REGEXP_COMMA),
747750
styles = match[2];
748751
createMediaContainers( media );
749752
__media_groups[id] = {
@@ -763,7 +766,8 @@ License: MIT License (see homepage)
763766
media = arrayify(media);
764767
// parse it into blocks & remove the last item (which is empty)
765768
var blocks = css.split(CLOSE_CURLY),
766-
b=m=a=0, bLen, mLen=media.length, props, prop, selector, medium, arr, aLen;
769+
b=0, m=0, a=0, bLen, mLen = media.length,
770+
props, prop, selector, medium, arr, aLen;
767771
blocks.pop();
768772
// loop
769773
for ( bLen=blocks.length; b<bLen; b++ )
@@ -1733,10 +1737,11 @@ License: MIT License (see homepage)
17331737
l_fragment = lookup[FRAGMENT],
17341738
l_prefix = lookup[PREFIX],
17351739
l_media = lookup[MEDIA],
1740+
props, property,
17361741
min, max,
17371742
medium, e_media,
17381743
sLoop, styles, sorted_styles,
1739-
s, sLen, selector, found,
1744+
s, sLen, selector, block, found,
17401745
i, iLen, test, matches = [];
17411746
// figure out specificity params
17421747
if ( defined( l_specificity ) )
@@ -2037,7 +2042,8 @@ License: MIT License (see homepage)
20372042
aLen = arg.length,
20382043
// global test vars
20392044
what = arg[1],
2040-
value = html = arg[2] || NULL,
2045+
value = arg[2] || NULL,
2046+
html = value,
20412047
el = arg[3] || NULL,
20422048
// property test vars
20432049
property, settable = TRUE, i,

0 commit comments

Comments
 (0)