summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-19 18:37:55 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-11-18 12:10:50 +0100
commitcc33f8695bdbbb2869608a78f9fb298eddc8929b (patch)
tree6d1bd6f45bd56e99b7760d2c748729c5e50a9e0c /core/js/js.js
parent6c3f0fd431c8e2dfa79a421c878bb5d15a42c1d5 (diff)
downloadnextcloud-server-cc33f8695bdbbb2869608a78f9fb298eddc8929b.tar.gz
nextcloud-server-cc33f8695bdbbb2869608a78f9fb298eddc8929b.zip
Make sure it is a function
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js2
1 files changed, 1 insertions, 1 deletions
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();
}
},