Skip to content

Commit

Permalink
Bug fix renderElementWithoutClass for functions
Browse files Browse the repository at this point in the history
* Bug fix renderElementWithoutClass when in manual change detection mode
  and trying to bind a function.
* Bump version to 21.0.1.
  • Loading branch information
puckowski committed Feb 11, 2024
1 parent fb04089 commit 6c25c63
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
5 changes: 2 additions & 3 deletions dist_sling/sling.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ function renderElementWithoutClass(t, e, n) {
_n4 = _Object$entries2$_i[1];
r.setAttributeNS(_n4.namespace, _e4, _n4.value);
}
}
r.setAttribute(_t7, l);
} else r.setAttribute(_t7, l);
}
var _iterator3 = _createForOfIteratorHelper(n),
_step3;
Expand Down Expand Up @@ -634,7 +633,7 @@ var l = function l(_ref3) {
}), t;
};
function version() {
return "21.0.0";
return "21.0.1";
}
var x = function x(t, e) {
return t.split(e).length - 1;
Expand Down
2 changes: 1 addition & 1 deletion dist_sling/sling.min.es5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist_sling/sling.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist_sling/sling.min.nomodule.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist_sling/sling.slim.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sling.js",
"version": "21.0.0",
"version": "21.0.1",
"description": "Client-side JavaScript framework for building Single Page Applications.",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/sling/core/sling.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ export function renderElementWithoutClass(tagName, attrs, children) {
value.value
);
}
}
el.setAttribute(k, v);
}
else el.setAttribute(k, v);
}

for (let child of children) {
Expand Down Expand Up @@ -1184,7 +1184,7 @@ const _mountInternal = (target, component, attachDetector) => {
}

export function version() {
return '21.0.0';
return '21.0.1';
}

function xmur3(str) {
Expand Down
2 changes: 1 addition & 1 deletion src/sling/core/sling.slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ const _mountInternal = (target, component, attachDetector) => {
}

export function version() {
return '21.0.0';
return '21.0.1';
}

export function resolveAll(promiseArr) {
Expand Down

0 comments on commit 6c25c63

Please sign in to comment.