From a09cf953bd3f88cb2646b0629269138114f129aa Mon Sep 17 00:00:00 2001 From: Allan Hvam Date: Thu, 13 Nov 2014 12:59:33 +0100 Subject: [PATCH] useAnimation made optional in Callout useAnimation should be optional in Callout close and open. I couldn't find any official documentation on this, but SharePoint defaults to false if it is not set: this.close = function(useAnimation) { useAnimation = m$.isBoolean(useAnimation) ? useAnimation : false; Examples online also shows that this argument should be optional: http://blog.alexboev.com/2012/08/custom-callouts-in-sharepoint-2013_21.html --- sharepoint/SharePoint.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharepoint/SharePoint.d.ts b/sharepoint/SharePoint.d.ts index 0be396fe6..417ea1e2f 100644 --- a/sharepoint/SharePoint.d.ts +++ b/sharepoint/SharePoint.d.ts @@ -861,9 +861,9 @@ declare class Callout { /** Re-renders the actions menu. Call after the actions menu is changed. */ refreshActions(): void; /** Display the callout. Animation can be used only for IE9+ */ - open(useAnimation: boolean); + open(useAnimation?: boolean); /** Hide the callout. Animation can be used only for IE9+ */ - close(useAnimation: boolean); + close(useAnimation?: boolean); /** Display if hidden, hide if shown. */ toggle(): void; /** Do not call this directly. Instead, use CalloutManager.remove */