diff options
| author | David Baughman <[email protected]> | 2015-08-27 13:41:24 -0700 |
|---|---|---|
| committer | David Baughman <[email protected]> | 2015-08-27 13:41:24 -0700 |
| commit | e481c8fff268a1cce1fe0d60dc85d4f6b85e855e (patch) | |
| tree | 361d07f1cbe685332826d6cb6b291243a939df30 /dist/js/bootstrap.js | |
| parent | 026682bf0dc828d8d689cb01e623eb311de0c013 (diff) | |
| parent | 232469549c9a9b6082b311f568556d99ea03af2f (diff) | |
| download | bootstrap-e481c8fff268a1cce1fe0d60dc85d4f6b85e855e.tar.xz bootstrap-e481c8fff268a1cce1fe0d60dc85d4f6b85e855e.zip | |
Merge branch 'v4-dev' into v4-media-breakpoint-between
Diffstat (limited to 'dist/js/bootstrap.js')
| -rw-r--r-- | dist/js/bootstrap.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 7d51c641c..bb5199178 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -3054,9 +3054,9 @@ var Tooltip = (function ($) { 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); @@ -3418,10 +3418,10 @@ var Popover = (function ($) { 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 |
