diff --git a/docs/javascript.html b/docs/javascript.html index d62dd731c1..4947735123 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -559,12 +559,6 @@ $('#.tabs').bind('change', function (e) {
Notice Individual twipsy instance options can alternatively be specified through the use of data attributes.
diff --git a/js/bootstrap-twipsy.js b/js/bootstrap-twipsy.js index 24c1ced8c7..5ebbddd675 100644 --- a/js/bootstrap-twipsy.js +++ b/js/bootstrap-twipsy.js @@ -119,7 +119,7 @@ , setContent: function () { var $tip = this.tip() - $tip.find(this.options.contentSelector)[this.options.html ? 'html' : 'text'](this.getTitle()) + $tip.find('.twipsy-inner')[this.options.html ? 'html' : 'text'](this.getTitle()) $tip[0].className = 'twipsy' } @@ -302,7 +302,6 @@ , title: 'title' , trigger: 'hover' , template: '' - , contentSelector: '.twipsy-inner' } $.fn.twipsy.rejectAttrOptions = [ 'title' ] @@ -319,4 +318,4 @@ return $.extend({}, options, data) } -}( window.jQuery || window.ender ); +}( window.jQuery || window.ender ); \ No newline at end of file diff --git a/js/tests/unit/bootstrap-popover.js b/js/tests/unit/bootstrap-popover.js index 69f3e0d7fa..823526727f 100644 --- a/js/tests/unit/bootstrap-popover.js +++ b/js/tests/unit/bootstrap-popover.js @@ -78,7 +78,7 @@ $(function () { var expectedTitle = 'Gotta make you understand' , popover = $('@rvagg') .attr('title', expectedTitle) - .data('content', 'Never gonna give you up,
Never gonna let you down
') + .attr('data-content', 'Never gonna give you up,
Never gonna let you down
') .appendTo('#qunit-runoff') .popover({ html: true diff --git a/js/tests/unit/bootstrap-twipsy.js b/js/tests/unit/bootstrap-twipsy.js index 74855931a6..04000696ae 100644 --- a/js/tests/unit/bootstrap-twipsy.js +++ b/js/tests/unit/bootstrap-twipsy.js @@ -78,22 +78,4 @@ $(function () { $('#qunit-runoff').empty() }) - test("should allow arbitrary template html with content selector options", function() { - $.support.transition = false - var twipsy = $('') - .appendTo('#qunit-runoff') - .twipsy({ - html: true - , contentSelector: 'h1' - , template: '@rvagg was here