Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing previously added braces and indentation. Looking at you @arian.

  • Loading branch information...
commit 399554fc83fd460b41a53063093b82d6c464788f 1 parent fd36e5f
@cpojer cpojer authored
Showing with 4 additions and 7 deletions.
  1. +4 −7 Source/Element/Element.js
View
11 Source/Element/Element.js
@@ -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];
@ibolmo Owner
ibolmo added a note

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

@cpojer Owner
cpojer added a note

oh hello compiler.

@subtleGradient Owner

Fixed in 9eb5551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
- 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(' ');
Please sign in to comment.
Something went wrong with that request. Please try again.