Bug Tracker

Changeset 4512

Show
Ignore:
Timestamp:
01/22/08 22:46:32 (11 months ago)
Author:
malsup
Message:

add support for declared args on commands that include elements.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plugins/taconite/jquery.taconite.js

    r4489 r4512  
    1111 * 
    1212 * $Id$ 
    13  * @version: 3.00  01/20/2008 
     13 * @version: 3.01  01/22/2008 
    1414 * @requires jQuery v1.1.2 or later 
    1515 */ 
     
    2020 
    2121$.taconite.debug = 0;  // set to true to enable debug logging to Firebug 
    22 $.taconite.version = '3.00'; 
     22$.taconite.version = '3.01'; 
    2323$.taconite.defaults = { 
    2424    cdataWrap: 'div' 
     
    159159                a.push(trimHash[cmd] ? cleanse(els) : els); 
    160160            } 
    161             else { 
    162                 // remain backward compat with pre 2.0.9 versions 
    163                 var n = cmdNode.getAttribute('name'); 
    164                 var v = cmdNode.getAttribute('value'); 
    165                 if (n !== null) a.push(n); 
    166                 if (v !== null) a.push(v); 
    167  
    168                 // @since: 2.0.9: support arg1, arg2, arg3... 
    169                 for (var j=1; true; j++) { 
    170                     v = cmdNode.getAttribute('arg'+j); 
    171                     if (v === null) 
    172                         break; 
    173                     a.push(v); 
    174                 } 
     161 
     162            // remain backward compat with pre 2.0.9 versions 
     163            var n = cmdNode.getAttribute('name'); 
     164            var v = cmdNode.getAttribute('value'); 
     165            if (n !== null) a.push(n); 
     166            if (v !== null) a.push(v); 
     167 
     168            // @since: 2.0.9: support arg1, arg2, arg3... 
     169            for (var j=1; true; j++) { 
     170                v = cmdNode.getAttribute('arg'+j); 
     171                if (v === null) 
     172                    break; 
     173                a.push(v); 
    175174            } 
    176175