aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/jquery/exists.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/jquery/exists.js')
-rw-r--r--core/src/jquery/exists.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/src/jquery/exists.js b/core/src/jquery/exists.js
index bdf62ab7d4b..3481faeb6cd 100644
--- a/core/src/jquery/exists.js
+++ b/core/src/jquery/exists.js
@@ -1,4 +1,4 @@
-/*
+/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -25,7 +25,8 @@ import $ from 'jquery'
* check if an element exists.
* allows you to write if ($('#myid').exists()) to increase readability
* @link http://stackoverflow.com/questions/31044/is-there-an-exists-function-for-jquery
+ * @returns {boolean}
*/
-$.fn.exists = function () {
- return this.length > 0;
-};
+$.fn.exists = function() {
+ return this.length > 0
+}