2
2
Function: eCSStender()
3
3
Author: Aaron Gustafson (aaron at easy-designs dot net)
4
4
Creation Date: 2006-12-03
5
- Version: 1.2.6
5
+ Version: 1.2.6.1
6
6
Homepage: http://eCSStender.org
7
7
License: MIT License (see homepage)
8
8
------------------------------------------------------------------------------*/
@@ -129,7 +129,7 @@ License: MIT License (see homepage)
129
129
// eCSStender Object
130
130
eCSStender = {
131
131
name : ECSSTENDER ,
132
- version : '1.2.6' ,
132
+ version : '1.2.6.1 ' ,
133
133
fonts : [ ] ,
134
134
pages : { } ,
135
135
at : { } ,
@@ -201,7 +201,7 @@ License: MIT License (see homepage)
201
201
{
202
202
if ( __no_cache || __local ) { return ; }
203
203
// 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 ;
205
205
eCSStender . cache = TRUE ;
206
206
for ( key in __modified )
207
207
{
@@ -368,17 +368,18 @@ License: MIT License (see homepage)
368
368
properties = extractProperties ( e [ 1 ] , e [ 2 ] , extension [ PROPERTIES ] ) ;
369
369
result = extension [ CALLBACK ] ( e [ 2 ] , properties , e [ 1 ] , specificity ) ;
370
370
// 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
+ }
375
375
__eCSStensions [ e [ 0 ] ] [ PROCESSED ] . push ( selector_id ) ;
376
376
}
377
377
}
378
378
}
379
379
function triggerOnCompletes ( )
380
380
{
381
- for ( var o = __on_complete . length - 1 ; o >= 0 ; o -- )
381
+ var o = __on_complete . length ;
382
+ while ( o -- )
382
383
{
383
384
__on_complete [ o ] ( ) ;
384
385
}
@@ -495,8 +496,9 @@ License: MIT License (see homepage)
495
496
actual_path = stylesheet . actual_path ,
496
497
css_path = actual_path || stylesheet . href ,
497
498
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 ;
500
502
if ( ! css_path ) { css_path = NULL ; }
501
503
// we only want sheets
502
504
if ( ! actual_path &&
@@ -743,7 +745,8 @@ License: MIT License (see homepage)
743
745
}
744
746
function collapseAtMedia ( css , match , id )
745
747
{
746
- media = match [ 1 ] . split ( REGEXP_COMMA ) ;
748
+ var
749
+ media = match [ 1 ] . split ( REGEXP_COMMA ) ,
747
750
styles = match [ 2 ] ;
748
751
createMediaContainers ( media ) ;
749
752
__media_groups [ id ] = {
@@ -763,7 +766,8 @@ License: MIT License (see homepage)
763
766
media = arrayify ( media ) ;
764
767
// parse it into blocks & remove the last item (which is empty)
765
768
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 ;
767
771
blocks . pop ( ) ;
768
772
// loop
769
773
for ( bLen = blocks . length ; b < bLen ; b ++ )
@@ -1733,10 +1737,11 @@ License: MIT License (see homepage)
1733
1737
l_fragment = lookup [ FRAGMENT ] ,
1734
1738
l_prefix = lookup [ PREFIX ] ,
1735
1739
l_media = lookup [ MEDIA ] ,
1740
+ props , property ,
1736
1741
min , max ,
1737
1742
medium , e_media ,
1738
1743
sLoop , styles , sorted_styles ,
1739
- s , sLen , selector , found ,
1744
+ s , sLen , selector , block , found ,
1740
1745
i , iLen , test , matches = [ ] ;
1741
1746
// figure out specificity params
1742
1747
if ( defined ( l_specificity ) )
@@ -2037,7 +2042,8 @@ License: MIT License (see homepage)
2037
2042
aLen = arg . length ,
2038
2043
// global test vars
2039
2044
what = arg [ 1 ] ,
2040
- value = html = arg [ 2 ] || NULL ,
2045
+ value = arg [ 2 ] || NULL ,
2046
+ html = value ,
2041
2047
el = arg [ 3 ] || NULL ,
2042
2048
// property test vars
2043
2049
property , settable = TRUE , i ,
0 commit comments