Skip to content

Commit

Permalink
Ensure addViews on base App
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Apr 23, 2024
1 parent 9d0c67c commit 40a1509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import htmlUtil = require('html-util');

import { createPathExpression } from './createPathExpression';
import { markup } from './markup';
import { AppForClient, App } from '../App';
import { App } from '../App';
import { templates, expressions } from '../templates';
import { Expression } from '../templates/expressions';
import { MarkupHook, View } from '../templates/templates';
Expand Down Expand Up @@ -879,7 +879,7 @@ function parseAlias(source: string) {
throw new Error('Alias must be an identifier starting with "#": ' + source);
}

AppForClient.prototype.addViews = function(file: string, namespace: string) {
App.prototype.addViews = function(file: string, namespace: string) {
const views = parseViews(file, namespace);
registerParsedViews(this, views);
};
Expand Down

0 comments on commit 40a1509

Please sign in to comment.