Skip to content

Commit

Permalink
slightly less obtrusive for compatibility with Ember. Bumping version.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikedKira committed Jan 6, 2016
1 parent c0d39a8 commit 09c6605
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.fn.twbs-responsive-pagination",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/SpikedKira/jQuery.fn.twbsResponsivePagination",
"authors": [
"J Corley <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions dist/twbsResponsivePagination.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.fn.twbs-responsive-pagination",
"version": "0.1.1",
"version": "0.1.2",
"description": "jQuery plugin to make Twitter Bootstrap pagination responsive",
"main": "dist/twbsResponsivePagination.min.js",
"scripts": {
Expand Down
12 changes: 2 additions & 10 deletions src/twbsResponsivePagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var settings = {};

function checkWidth( el ) {
if( $(el).width() > $(el).parent().width() ) {
if( $(el).width() >= $(el).parent().width() ) {
return false;
}
return true;
Expand All @@ -26,18 +26,10 @@
"disabled removable"
).addClass(
settings.overflowClass
).attr( 'aria-hidden', true ).css('display', 'inline-block');
).attr( 'aria-hidden', true );

$(this).data('twbsResponsivePagination', settings);

// remove whitespace text nodes from the LIs //
$(this).contents().filter( function() {
return (this.nodeType == 3 && !/\S/.test(this.nodeValue));
}).remove();

$(this).css('white-space', 'nowrap');
$lis.css('display', 'inline-block');

var context = this;

$(window).bind('resize.twbsResponsivePagination', function() {
Expand Down

0 comments on commit 09c6605

Please sign in to comment.