Changes between Initial Version and Version 1 of Ticket #7103, comment 1


Ignore:
Timestamp:
Jun 28, 2011, 11:47:14 AM (10 years ago)
Author:
davh@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7103, comment 1

    initial v1  
    77if ( data.customAttr )
    88{
    9  var custAttr = function( inputName, attrName )
     9 var custAttr = function( inputName )
    1010 {
    1111  var value = data.customAttr[ inputName ];
    1212  if ( value )
    13     attributes[attrName] = value;
     13    attributes[inputName] = value;
    1414  else
    15     removeAttributes.push( attrName );
     15    removeAttributes.push( inputName );
    1616 };
    1717 for(attr in data.customAttr)
    18    custAttr(x);
     18   custAttr(attr);
    1919}
    2020}}}
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy