Commit d06f79e2 authored by Chris Rebert's avatar Chris Rebert

grunt babel:dev

parent 3de3dac0
...@@ -104,10 +104,10 @@ var Popover = (function ($) { ...@@ -104,10 +104,10 @@ var Popover = (function ($) {
var tip = this.getTipElement(); var tip = this.getTipElement();
var title = this.getTitle(); var title = this.getTitle();
var content = this._getContent(); var content = this._getContent();
var titleElement = $(tip).find(Selector.TITLE)[0]; var $titleElement = $(tip).find(Selector.TITLE);
if (titleElement) { if ($titleElement) {
titleElement[this.config.html ? 'innerHTML' : 'innerText'] = title; $titleElement[this.config.html ? 'html' : 'text'](title);
} }
// we use append for html objects to maintain js events // we use append for html objects to maintain js events
......
This diff was suppressed by a .gitattributes entry.
...@@ -331,9 +331,9 @@ var Tooltip = (function ($) { ...@@ -331,9 +331,9 @@ var Tooltip = (function ($) {
value: function setContent() { value: function setContent() {
var tip = this.getTipElement(); var tip = this.getTipElement();
var title = this.getTitle(); 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); $(tip).removeClass(ClassName.FADE).removeClass(ClassName.IN);
......
This diff was suppressed by a .gitattributes entry.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment