aboutsummaryrefslogtreecommitdiff
path: root/js/src/popover.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/popover.js')
-rw-r--r--js/src/popover.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/src/popover.js b/js/src/popover.js
index 30c0e4acb..99e48e64f 100644
--- a/js/src/popover.js
+++ b/js/src/popover.js
@@ -116,12 +116,12 @@ const Popover = (($) => {
let tip = this.getTipElement()
let title = this.getTitle()
let content = this._getContent()
- let titleElement = $(tip).find(Selector.TITLE)[0]
+ let $titleElement = $(tip).find(Selector.TITLE)
- if (titleElement) {
- titleElement[
- this.config.html ? 'innerHTML' : 'innerText'
- ] = title
+ if ($titleElement) {
+ $titleElement[
+ this.config.html ? 'html' : 'text'
+ ](title)
}
// we use append for html objects to maintain js events