vendor/assets/javascripts/twitter/bootstrap/popover.js in bootstrap-sass-rails-2.2.2.1 vs vendor/assets/javascripts/twitter/bootstrap/popover.js in bootstrap-sass-rails-2.3.0.0
- old
+ new
@@ -1,7 +1,7 @@
/* ===========================================================
- * bootstrap-popover.js v2.2.2
+ * bootstrap-popover.js v2.3.0
* http://twitter.github.com/bootstrap/javascript.html#popovers
* ===========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -56,12 +56,12 @@
, getContent: function () {
var content
, $e = this.$element
, o = this.options
- content = $e.attr('data-content')
- || (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
+ content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
+ || $e.attr('data-content')
return content
}
, tip: function () {
@@ -97,11 +97,11 @@
$.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
placement: 'right'
, trigger: 'click'
, content: ''
- , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>'
+ , template: '<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'
})
/* POPOVER NO CONFLICT
* =================== */
@@ -109,6 +109,6 @@
$.fn.popover.noConflict = function () {
$.fn.popover = old
return this
}
-}(window.jQuery);
\ No newline at end of file
+}(window.jQuery);