Changeset 110

Show
Ignore:
Timestamp:
14-01-2008 22:50:36 (12 months ago)
Author:
s0undt3ch
Message:

Always pop extra args.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • sandbox/MinificationWebHelpers/tags/0.1.1/minwebhelpers/asset_tag.py

    r66 r110  
    8181        return _sources 
    8282 
     83    combined = options.pop('combined', False) 
     84    minified = options.pop('minified', False) 
     85 
    8386    if not config.get('debug', False): 
    8487        fs_root = root = config.get('pylons.paths').get('static_files') 
    85         if options.pop('combined', False): 
     88        if combined: 
    8689            sources = combine_sources([source for source in sources], fs_root) 
    8790 
    88         if options.pop('minified', False): 
     91        if minified: 
    8992            sources = get_sources([source for source in sources], fs_root) 
    9093    return __javascript_include_tag(*sources, **options) 
     
    140143        return _sources 
    141144 
     145    combined = options.pop('combined', False) 
     146    minified = options.pop('minified', False) 
     147 
    142148    if not config.get('debug', False): 
    143149        fs_root = root = config.get('pylons.paths').get('static_files') 
    144         if options.pop('combined', False): 
     150        if combined: 
    145151            sources = combine_sources([source for source in sources], fs_root) 
    146152 
    147         if options.pop('minified', False): 
     153        if minified: 
    148154            sources = get_sources([source for source in sources], fs_root) 
    149155    return __stylesheet_link_tag(*sources, **options)