mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 16:44:17 +02:00
dist
This commit is contained in:
12
js/dist/popover.js
vendored
12
js/dist/popover.js
vendored
@@ -75,7 +75,7 @@ var Popover = function ($) {
|
||||
|
||||
var _proto = Popover.prototype;
|
||||
|
||||
// overrides
|
||||
// Overrides
|
||||
_proto.isWithContent = function isWithContent() {
|
||||
return this.getTitle() || this._getContent();
|
||||
};
|
||||
@@ -90,7 +90,7 @@ var Popover = function ($) {
|
||||
};
|
||||
|
||||
_proto.setContent = function setContent() {
|
||||
var $tip = $(this.getTipElement()); // we use append for html objects to maintain js events
|
||||
var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events
|
||||
|
||||
this.setElementContent($tip.find(Selector.TITLE), this.getTitle());
|
||||
|
||||
@@ -102,7 +102,7 @@ var Popover = function ($) {
|
||||
|
||||
this.setElementContent($tip.find(Selector.CONTENT), content);
|
||||
$tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
|
||||
}; // private
|
||||
}; // Private
|
||||
|
||||
|
||||
_proto._getContent = function _getContent() {
|
||||
@@ -116,7 +116,7 @@ var Popover = function ($) {
|
||||
if (tabClass !== null && tabClass.length > 0) {
|
||||
$tip.removeClass(tabClass.join(''));
|
||||
}
|
||||
}; // static
|
||||
}; // Static
|
||||
|
||||
|
||||
Popover._jQueryInterface = function _jQueryInterface(config) {
|
||||
@@ -136,7 +136,7 @@ var Popover = function ($) {
|
||||
|
||||
if (typeof config === 'string') {
|
||||
if (typeof data[config] === 'undefined') {
|
||||
throw new Error("No method named \"" + config + "\"");
|
||||
throw new TypeError("No method named \"" + config + "\"");
|
||||
}
|
||||
|
||||
data[config]();
|
||||
@@ -146,7 +146,7 @@ var Popover = function ($) {
|
||||
|
||||
_createClass(Popover, null, [{
|
||||
key: "VERSION",
|
||||
// getters
|
||||
// Getters
|
||||
get: function get() {
|
||||
return VERSION;
|
||||
}
|
||||
|
Reference in New Issue
Block a user