Skip to content

Commit 48673c1

Browse files
committed
version 3.2.0-alpha.30
1 parent 5d9d41c commit 48673c1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cample",
3-
"version": "3.2.0-alpha.29",
3+
"version": "3.2.0-alpha.30",
44
"description": "Cample.js - fast modern javascript framework. Reactivity without virtual DOM!",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/core/components/component/component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,10 @@ export class Component extends DataComponent {
223223
exportObjData,
224224
exportConstructor
225225
} = currentComponent;
226-
const { constructor, indexesData: indexesValue } =
227-
exportObject as ExportObjectDataType;
228226
const newExportData = {};
229227
if (exportObject !== undefined) {
228+
const { constructor, indexesData: indexesValue } =
229+
exportObject as ExportObjectDataType;
230230
for (let i = 0; i < exportObjData.length; i++) {
231231
const { key } = exportObjData[i];
232232
if (constructor[key] !== undefined) {

src/core/functions/parse/parse-template.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export const parseTemplate = (
367367
) => {
368368
if (element) {
369369
const eventFn = (event: Event) => {
370-
const newArgs = args.map((e: any) => getEventsData1(e));
370+
const newArgs = args.map((e: any) => getEventsData1(e, id));
371371
fn(event).apply(this, newArgs);
372372
};
373373
element[CLICK_FUNCTION_NAME] = eventFn;
@@ -383,7 +383,7 @@ export const parseTemplate = (
383383
) => {
384384
if (element) {
385385
const eventFn = (event: Event) => {
386-
const newArgs = args.map((e: any) => getEventsData1(e));
386+
const newArgs = args.map((e: any) => getEventsData1(e, id));
387387
fn(event).apply(this, newArgs);
388388
};
389389
element.addEventListener(keyEvent, eventFn);

0 commit comments

Comments
 (0)