From 33a79667e06b2b65336b79178a807ce751a9654c Mon Sep 17 00:00:00 2001 From: Eric Winkelmann Date: Sat, 12 Dec 2015 21:25:13 -0800 Subject: [PATCH] Make IObservable.off() args optional in fabricjs.d.ts As specified in the [fabric.js documentation](http://fabricjs.com/docs/fabric.Observable.html#off), `IObservable.off()` accepts two optional arguments. --- fabricjs/fabricjs.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabricjs/fabricjs.d.ts b/fabricjs/fabricjs.d.ts index d4ac5ad75b..248ee29f2c 100644 --- a/fabricjs/fabricjs.d.ts +++ b/fabricjs/fabricjs.d.ts @@ -345,7 +345,7 @@ declare module fabric { * @param eventName Event name (eg. 'after:render') or object with key/value pairs (eg. {'after:render': handler, 'selection:cleared': handler}) * @param handler Function to be deleted from EventListeners */ - off(eventName: string|any, handler: (e: IEvent) => any): T; + off(eventName?: string|any, handler?: (e: IEvent) => any): T; } // animation mixin