lemonadejs
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -640,13 +640,5 @@ /** | ||
parseTokens.call(self, { e: element, a: prop, v: attr[k[i]], s: self, r: r, loop: true }) | ||
} else if (type === 'src') { | ||
// Parse attributes | ||
parseTokens.call(self, { e: element, a: 'src', v: '{{' + attr[k[i]] + '}}', s: self }) | ||
} else { | ||
// Parse attributes | ||
let value = run.call(self, attr[k[i]]); | ||
if (element.lemonade) { | ||
element.lemonade.self[type] = value; | ||
} else { | ||
element[type] = value; | ||
} | ||
parseTokens.call(self, { e: element, a: type, v: '{{' + attr[k[i]] + '}}', s: self }) | ||
} | ||
@@ -685,4 +677,7 @@ | ||
if (t && t.handler && ! t.loop) { | ||
let s = getAttributes.call(element, true); | ||
// Make sure we have the attributes with the most recent values | ||
L.setProperties.call(s, t.self); | ||
// Make sure the self goes as a reference | ||
L.setProperties.call(t.self, getAttributes.call(element, true), true); | ||
L.setProperties.call(t.self, s, true); | ||
// Reference to the element | ||
@@ -689,0 +684,0 @@ register(t.self, 'parent', self); |
@@ -651,13 +651,5 @@ /** | ||
parseTokens.call(self, { e: element, a: prop, v: attr[k[i]], s: self, r: r, loop: true }) | ||
} else if (type === 'src') { | ||
// Parse attributes | ||
parseTokens.call(self, { e: element, a: 'src', v: '{{' + attr[k[i]] + '}}', s: self }) | ||
} else { | ||
// Parse attributes | ||
let value = run.call(self, attr[k[i]]); | ||
if (element.lemonade) { | ||
element.lemonade.self[type] = value; | ||
} else { | ||
element[type] = value; | ||
} | ||
parseTokens.call(self, { e: element, a: type, v: '{{' + attr[k[i]] + '}}', s: self }) | ||
} | ||
@@ -696,4 +688,7 @@ | ||
if (t && t.handler && ! t.loop) { | ||
let s = getAttributes.call(element, true); | ||
// Make sure we have the attributes with the most recent values | ||
L.setProperties.call(s, t.self); | ||
// Make sure the self goes as a reference | ||
L.setProperties.call(t.self, getAttributes.call(element, true), true); | ||
L.setProperties.call(t.self, s, true); | ||
// Reference to the element | ||
@@ -700,0 +695,0 @@ register(t.self, 'parent', self); |
@@ -39,3 +39,3 @@ { | ||
"types": "dist/lemonade.d.ts", | ||
"version": "3.3.0" | ||
"version": "3.3.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83301
2009