mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Reduce JavaScript footprint
This commit is contained in:
parent
689126c57d
commit
b12852bd08
42 changed files with 240 additions and 426 deletions
|
|
@ -28,8 +28,8 @@ export class AbstractApp {
|
|||
}
|
||||
|
||||
bootstart() {
|
||||
const register = (key, ClassObject) => ko.components.register(key, {
|
||||
template: { element: key + 'Component' },
|
||||
const register = (name, ClassObject) => ko.components.register(name, {
|
||||
template: { element: ClassObject.name },
|
||||
viewModel: {
|
||||
createViewModel: (params, componentInfo) => {
|
||||
params = params || {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue