Skip to content

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
- Fix built version
  • Loading branch information
lencioni committed Nov 12, 2015
1 parent 7e590b9 commit 75ffafc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## master (unreleased)

## 1.1.2

- Fix built version

## 1.1.1

- Add statics for edge argument used by `onEnter` and `onLeave`
Expand Down
9 changes: 9 additions & 0 deletions build/npm/waypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ var Waypoint = React.createClass({
onLeave: PropTypes.func
},

statics: {
above: POSITIONS.above,
below: POSITIONS.below
},

/**
* @return {Object}
*/
Expand Down Expand Up @@ -102,6 +107,10 @@ var Waypoint = React.createClass({
* called by a React lifecyle method
*/
_handleScroll: function _handleScroll(event) {
if (!this.isMounted()) {
return;
}

var currentPosition = this._currentPosition();
var previousPosition = this._previousPosition || null;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-waypoint",
"version": "1.1.1",
"version": "1.1.2",
"description": "A React component to execute a function whenever you scroll to an element.",
"main": "build/npm/waypoint.js",
"repository": {
Expand Down

0 comments on commit 75ffafc

Please sign in to comment.