Skip to content

Commit ae827c1

Browse files
authored
Use factory method without new (#1931)
1 parent 3b79310 commit ae827c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

folium/plugins/realtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class Realtime(JSCSSMixin, MacroElement):
8080
= {{ this.container.get_name() }};
8181
{% endif -%}
8282
83-
var {{ this.get_name() }} = new L.realtime(
83+
var {{ this.get_name() }} = L.realtime(
8484
{% if this.src is string or this.src is mapping -%}
8585
{{ this.src|tojson }},
8686
{% else -%}

0 commit comments

Comments
 (0)