Skip to content

Commit

Permalink
update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
davist11 committed Oct 31, 2013
1 parent 6b29ff0 commit 62f0e0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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.4.0",
"version": "1.4.1",
"main": "./jquery.stickem.js",
"dependencies": {
"jquery": "~1.8.1"
Expand Down
8 changes: 4 additions & 4 deletions jquery.stickem.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* @name jQuery Stick 'em
* @author Trevor Davis
* @version 1.4
* @version 1.4.1
*
* $('.container').stickem({
* item: '.stickem',
* item: '.stickem',
* container: '.stickem-container',
* stickClass: 'stickit',
* endStickClass: 'stickit-end',
Expand Down Expand Up @@ -51,7 +51,7 @@

bindEvents: function() {
var _self = this;

_self.$win.on('scroll.stickem', $.proxy(_self.handleScroll, _self));
_self.$win.on('resize.stickem', $.proxy(_self.handleResize, _self));
},
Expand Down Expand Up @@ -125,7 +125,7 @@
var item = _self.items[i];

//If it's stuck, and we need to unstick it, or if the page loads below it
if((item.isStuck && (pos < item.containerStart || pos > item.scrollFinish)) || pos > item.scrollFinish ) {
if((item.isStuck && (pos < item.containerStart || pos > item.scrollFinish)) || pos > item.scrollFinish) {
item.$elem.removeClass(_self.config.stickClass);

//only at the bottom
Expand Down

0 comments on commit 62f0e0f

Please sign in to comment.