Skip to content

Commit

Permalink
Binding handler renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Feb 14, 2025
1 parent 23d97c9 commit a7ad9b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Framework/Framework/Controls/Timer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected override void RenderBeginTag(IHtmlWriter writer, IDotvvmRequestContext
group.Add("command", KnockoutHelper.GenerateClientPostbackLambda("Command", Command, this));
group.Add("interval", Interval.ToString());
group.Add("enabled", this, EnabledProperty);
writer.WriteKnockoutDataBindComment("timer", group.ToString());
writer.WriteKnockoutDataBindComment("dotvvm-timer", group.ToString());

base.RenderBeginTag(writer, context);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
command: () => Promise<DotvvmAfterPostBackEventArgs>
}

ko.virtualElements.allowedBindings["timer"] = true;
ko.virtualElements.allowedBindings["dotvvm-timer"] = true;

export default {
"timer": {
"dotvvm-timer": {
init: (element: HTMLElement, valueAccessor: () => TimerProps) => {
const prop = valueAccessor();
let timer: number | null = null;
Expand Down

0 comments on commit a7ad9b6

Please sign in to comment.