ender-bootstrap-popover
Advanced tools
+4
-4
@@ -16,8 +16,8 @@ { | ||
| "dependencies": { | ||
| "ender-bootstrap-base": "2.0.2", | ||
| "ender-bootstrap-transition": "2.0.2", | ||
| "ender-bootstrap-tooltip": "2.0.2" | ||
| "ender-bootstrap-base": "2.0.3", | ||
| "ender-bootstrap-transition": "2.0.3", | ||
| "ender-bootstrap-tooltip": "2.0.3" | ||
| }, | ||
| "main": "popover.js", | ||
| "version": "2.0.2" | ||
| "version": "2.0.3" | ||
| } |
+12
-9
| /* =========================================================== | ||
| * bootstrap-popover.js v2.0.2 | ||
| * bootstrap-popover.js v2.0.3 | ||
| * http://twitter.github.com/bootstrap/javascript.html#popovers | ||
@@ -21,6 +21,10 @@ * =========================================================== | ||
| !function( $ ) { | ||
| !function ($) { | ||
| "use strict" | ||
| "use strict"; // jshint ;_; | ||
| /* POPOVER PUBLIC CLASS DEFINITION | ||
| * =============================== */ | ||
| var Popover = function ( element, options ) { | ||
@@ -30,2 +34,3 @@ this.init('popover', element, options) | ||
| /* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js | ||
@@ -43,4 +48,4 @@ ========================================== */ | ||
| $tip.find('.popover-title')[ typeof title == 'object' ? 'append' : 'html' ](title) | ||
| $tip.find('.popover-content > *')[ typeof content == 'object' ? 'append' : 'html' ](content) | ||
| $tip.find('.popover-title')[this.isHTML(title) ? 'html' : 'text'](title) | ||
| $tip.find('.popover-content > *')[this.isHTML(content) ? 'html' : 'text'](content) | ||
@@ -62,8 +67,6 @@ $tip.removeClass('fade top bottom left right in') | ||
| content = content.toString().replace(/(^\s*|\s*$)/, "") | ||
| return content | ||
| } | ||
| , tip: function() { | ||
| , tip: function () { | ||
| if (!this.$tip) { | ||
@@ -81,3 +84,3 @@ this.$tip = $(this.options.template) | ||
| $.fn.popover = function ( option ) { | ||
| $.fn.popover = function (option) { | ||
| return this.each(function () { | ||
@@ -84,0 +87,0 @@ var $this = $(this) |
3401
0.27%72
1.41%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated