From 42f347283f82e02bd7c39047af2ead70dac6e67d Mon Sep 17 00:00:00 2001 From: Derek Cicerone Date: Thu, 23 Jan 2014 14:44:50 -0500 Subject: [PATCH] Leaflet: fix default icon constructor This fix allows this code (which worked in an earlier version): var icon = new L.Icon.Default(); --- leaflet/leaflet.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index 5462a8afb1..3044970b0c 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -991,9 +991,9 @@ declare module L { export class Default extends Icon { /** - * Creates an icon instance with default options. + * Creates a default icon instance with the given options. */ - constructor(options: IconOptions); + constructor(options?: IconOptions); static imagePath: string; }