]> source.dussan.org Git - svg.js.git/commitdiff
Fix typings for apply optional parameter of off method in event.js
authorflynn.park <niceilm@naver.com>
Fri, 23 Feb 2018 16:50:07 +0000 (01:50 +0900)
committerflynn.park <niceilm@naver.com>
Fri, 23 Feb 2018 16:50:07 +0000 (01:50 +0900)
svg.js.d.ts

index 5a12594df65b1a9c900afc42dffb7f5ab2939fc0..e5536cc7a753efe054c754cc1c89696db4b5a4ea 100644 (file)
@@ -317,7 +317,7 @@ declare namespace svgjs {
     // event.js\r
     interface Element {\r
         on(event: string, cb: Function, context?: Object): this;\r
-        off(event: string, cb: Function, context?: Object): this;\r
+        off(event: string, cb?: Function, context?: Object): this;\r
         fire(event: string, data?: any): this;\r
         fire(event: Event): this;\r
         event(): Event | CustomEvent;\r