Skip to content

Commit 41e0004

Browse files
committed
Use factory method without new
1 parent 3ccc47c commit 41e0004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)