From cc33f8695bdbbb2869608a78f9fb298eddc8929b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 19 Sep 2016 18:37:55 +0200 Subject: [PATCH] Make sure it is a function Signed-off-by: Joas Schilling --- core/js/js.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/js.js b/core/js/js.js index f498ed751c0..efdb36187cd 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1574,7 +1574,7 @@ OC.PasswordConfirmation = { self.$form.addClass('hidden'); self.$background.addClass('hidden'); - if (!_.isUndefined(self.callback)) { + if (_.isFunction(self.callback)) { self.callback(); } },