malinajs 0.6.62 → 0.6.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/compile.js +4 -4
  2. package/malina.js +5 -5
  3. package/package.json +1 -1
package/compile.js CHANGED
@@ -4681,7 +4681,7 @@ function bindProp(prop, node, element) {
4681
4681
  ctx.writeLine(`$runtime.bindInput($cd, ${n.el}, '${attr}', () => ${exp}, ${argName} => {${exp} = ${argName}; $$apply();});`);
4682
4682
  })};
4683
4683
  } else if(name == 'style' && arg) {
4684
- let styleName = toCamelCase(arg);
4684
+ let styleName = arg;
4685
4685
  let exp;
4686
4686
  if(prop.value) {
4687
4687
  if(isExpression(prop.value)) {
@@ -4698,12 +4698,12 @@ function bindProp(prop, node, element) {
4698
4698
  name: styleName,
4699
4699
  value: prop.value
4700
4700
  }, (ctx, n) => {
4701
- ctx.writeLine(`${n.el}.style.${n.name} = \`${this.Q(n.value)}\`;`);
4701
+ ctx.writeLine(`${n.el}.style.${toCamelCase(n.name)} = \`${this.Q(n.value)}\`;`);
4702
4702
  })};
4703
4703
  }
4704
4704
  }
4705
4705
  } else {
4706
- exp = styleName;
4706
+ exp = toCamelCase(styleName);
4707
4707
  }
4708
4708
 
4709
4709
  let hasElement = exp.includes('$element');
@@ -4719,7 +4719,7 @@ function bindProp(prop, node, element) {
4719
4719
  if(ctx.inuse.apply) {
4720
4720
  ctx.writeLine(`$runtime.bindStyle($cd, ${n.el}, '${n.styleName}', () => (${n.exp}));`);
4721
4721
  } else {
4722
- ctx.writeLine(`${n.el}.style.${n.styleName} = ${n.exp};`);
4722
+ ctx.writeLine(`${n.el}.style.${toCamelCase(n.styleName)} = ${n.exp};`);
4723
4723
  }
4724
4724
  })]
4725
4725
  })};
package/malina.js CHANGED
@@ -4682,7 +4682,7 @@
4682
4682
  ctx.writeLine(`$runtime.bindInput($cd, ${n.el}, '${attr}', () => ${exp}, ${argName} => {${exp} = ${argName}; $$apply();});`);
4683
4683
  })};
4684
4684
  } else if(name == 'style' && arg) {
4685
- let styleName = toCamelCase(arg);
4685
+ let styleName = arg;
4686
4686
  let exp;
4687
4687
  if(prop.value) {
4688
4688
  if(isExpression(prop.value)) {
@@ -4699,12 +4699,12 @@
4699
4699
  name: styleName,
4700
4700
  value: prop.value
4701
4701
  }, (ctx, n) => {
4702
- ctx.writeLine(`${n.el}.style.${n.name} = \`${this.Q(n.value)}\`;`);
4702
+ ctx.writeLine(`${n.el}.style.${toCamelCase(n.name)} = \`${this.Q(n.value)}\`;`);
4703
4703
  })};
4704
4704
  }
4705
4705
  }
4706
4706
  } else {
4707
- exp = styleName;
4707
+ exp = toCamelCase(styleName);
4708
4708
  }
4709
4709
 
4710
4710
  let hasElement = exp.includes('$element');
@@ -4720,7 +4720,7 @@
4720
4720
  if(ctx.inuse.apply) {
4721
4721
  ctx.writeLine(`$runtime.bindStyle($cd, ${n.el}, '${n.styleName}', () => (${n.exp}));`);
4722
4722
  } else {
4723
- ctx.writeLine(`${n.el}.style.${n.styleName} = ${n.exp};`);
4723
+ ctx.writeLine(`${n.el}.style.${toCamelCase(n.styleName)} = ${n.exp};`);
4724
4724
  }
4725
4725
  })]
4726
4726
  })};
@@ -5931,7 +5931,7 @@
5931
5931
  return {event, fn};
5932
5932
  }
5933
5933
 
5934
- const version = '0.6.62';
5934
+ const version = '0.6.63';
5935
5935
 
5936
5936
 
5937
5937
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.6.62",
3
+ "version": "0.6.63",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "prepare": "npm run build",