Skip to content

Commit

Permalink
chore: Update package.json version to 2.0.8 and add afterRender() met…
Browse files Browse the repository at this point in the history
…hod in View.ts
  • Loading branch information
vikraj66 committed Jun 7, 2024
1 parent 35a9811 commit 2dd102a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wayofjs",
"version": "2.0.7",
"version": "2.0.8",
"description": "A library for managing models and views",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions src/core/views/View.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export abstract class View<T extends Model<K>, K extends HasId> {

onRender(): void { }

afterRender(): void { }

render(): void {
this.parent.innerHTML = '';

Expand Down Expand Up @@ -162,5 +164,7 @@ export abstract class View<T extends Model<K>, K extends HasId> {
}
}
}

this.afterRender();
}
}

0 comments on commit 2dd102a

Please sign in to comment.