2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-03-18 15:30:38 +00:00
This commit is contained in:
2022-09-11 13:43:55 +03:00
parent 90a67b66a3
commit 4aa71458bc
4 changed files with 7 additions and 9 deletions

View File

@@ -129,7 +129,7 @@ const namespace = {
define: function(target, type, className) {
let sc = className.split('.');
for(let i = 0; i < sc.length; i++) {
for(let i = 0; i < sc.length - 1; i++) {
if (target[sc[i]] == undefined)
target[sc[i]] = {};
target = target[sc[i]];