Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/dist/popover.js')
-rw-r--r--js/dist/popover.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/dist/popover.js b/js/dist/popover.js
index d09f027308..b87bcf06dd 100644
--- a/js/dist/popover.js
+++ b/js/dist/popover.js
@@ -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;
}