Browse Source

Fix extending for client components

tags/v0.10.6^2
kckckc 2 years ago
parent
commit
7373797d33
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/client/js/components/components.js

+ 2
- 2
src/client/js/components/components.js View File

@@ -31,7 +31,7 @@ define([
if (cpn.type)
templates.push(tpl);
if (cpn.extends)
extenders.push(tpl);
extenders.push({ extends: cpn.extends, tpl });
res();
});
@@ -49,7 +49,7 @@ define([
templates.forEach(t => {
const extensions = extenders.filter(e => e.extends === t.type);

extensions.forEach(e => $.extend(true, t, e));
extensions.forEach(e => $.extend(true, t, e.tpl));

t.eventList = {};
t.hookEvent = hookEvent;


Loading…
Cancel
Save