Skip to content

Commit

Permalink
Removing previously added braces and indentation. Looking at you @arian.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Apr 21, 2011
1 parent fd36e5f commit 399554f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Source/Element/Element.js
Expand Up @@ -29,13 +29,10 @@ var Element = function(tag, props){
var attributes = parsed.attributes;
if (attributes) for (var i = 0, l = attributes.length; i < l; i++){
var attr = attributes[i];

This comment has been minimized.

Copy link
@ibolmo

ibolmo Apr 21, 2011

Member

i'd move the var attr into the for declaration or next to attributes declaration.

This comment has been minimized.

Copy link
@cpojer

cpojer Apr 21, 2011

Author Member

oh hello compiler.

This comment has been minimized.

Copy link
@subtleGradient

subtleGradient May 1, 2011

Member

Fixed in 9eb5551

if (props[attr.key] == null){
if (attr.value != null && attr.operator == '='){
props[attr.key] = attr.value;
} else if (!attr.value && !attr.operator){
props[attr.key] = true;
}
}
if (props[attr.key] != null) continue;

if (attr.value != null && attr.operator == '=') props[attr.key] = attr.value;
else if (!attr.value && !attr.operator) props[attr.key] = true;
}

if (parsed.classList && props['class'] == null) props['class'] = parsed.classList.join(' ');
Expand Down

0 comments on commit 399554f

Please sign in to comment.