Skip to content

Commit

Permalink
freezing Object now is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 7, 2021
1 parent 925c91c commit 016793a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -3370,8 +3370,8 @@
* Returns a component tag declaration like:
* <component name=<name> ...></component>
*/
let arg = [...arguments].map(function (a){ return {[a.split("=")[0]]:a.split("=")[1]}}).reduce(function (k1, k2) {return Object.assign(k1, k2)});
let attrs = [...Object.keys(arg)].map(function (a) {return `${a}=${arg[a]}`}).join(" ");
let arg = [...arguments].map(function (a){ return {[a.split("=")[0]]:a.split("=")[1]};}).reduce(function (k1, k2) {return Object.assign(k1, k2);});
let attrs = [...Object.keys(arg)].map(function (a) {return `${a}=${arg[a]}`;}).join(" ");
return `<component ${attrs}></component>`;
};

Expand Down Expand Up @@ -4086,7 +4086,7 @@
var __freeze__ = function (){
Object.freeze(Object.prototype);
Object.freeze(Object);
}
};
if (isBrowser && CONFIG.get("secureObjects", true)){
Ready(function (){
__freeze__();
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.33
2.3.34

0 comments on commit 016793a

Please sign in to comment.