aboutsummaryrefslogtreecommitdiff
path: root/docs/dist/js/umd
diff options
context:
space:
mode:
Diffstat (limited to 'docs/dist/js/umd')
-rw-r--r--docs/dist/js/umd/popover.js6
-rw-r--r--docs/dist/js/umd/tooltip.js4
2 files changed, 5 insertions, 5 deletions
diff --git a/docs/dist/js/umd/popover.js b/docs/dist/js/umd/popover.js
index e1b56fcfc..fe0f41d8d 100644
--- a/docs/dist/js/umd/popover.js
+++ b/docs/dist/js/umd/popover.js
@@ -121,10 +121,10 @@
var tip = this.getTipElement();
var title = this.getTitle();
var content = this._getContent();
- var titleElement = $(tip).find(Selector.TITLE)[0];
+ var $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
diff --git a/docs/dist/js/umd/tooltip.js b/docs/dist/js/umd/tooltip.js
index 307474d49..8b75867a2 100644
--- a/docs/dist/js/umd/tooltip.js
+++ b/docs/dist/js/umd/tooltip.js
@@ -348,9 +348,9 @@
value: function setContent() {
var tip = this.getTipElement();
var title = this.getTitle();
- var method = this.config.html ? 'innerHTML' : 'innerText';
+ var method = this.config.html ? 'html' : 'text';
- $(tip).find(Selector.TOOLTIP_INNER)[0][method] = title;
+ $(tip).find(Selector.TOOLTIP_INNER)[method](title);
$(tip).removeClass(ClassName.FADE).removeClass(ClassName.IN);