Skip to content

Commit

Permalink
remove classes from item when the window height is smaller, fixes dav…
Browse files Browse the repository at this point in the history
  • Loading branch information
davist11 committed Oct 8, 2012
1 parent 11255f6 commit 89e818f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stickem",
"version": "1.1",
"version": "1.3",
"main": "./jquery.stickem.js",
"dependencies": {
"jquery": "~1.8.1"
Expand Down
4 changes: 3 additions & 1 deletion jquery.stickem.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @name jQuery Stick 'em
* @author Trevor Davis
* @version 1.2
* @version 1.3
*
* $('.container').stickem({
* item: '.stickem',
Expand Down Expand Up @@ -98,6 +98,8 @@
if(item.containerInnerHeight > item.elemHeight) {
_self.items.push(item);
}
} else {
item.$elem.removeClass(_self.config.stickClass + ' ' + _self.config.endStickClass);
}
},

Expand Down

0 comments on commit 89e818f

Please sign in to comment.