Skip to content

Commit

Permalink
Build and prepare for 3.1.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
imakewebthings committed Jan 29, 2015
1 parent 78cf295 commit 13ae054
Show file tree
Hide file tree
Showing 17 changed files with 58 additions and 31 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.1.1

- Fix bad `isWindow` checks causing errors in IE8-. (Issue #372)

## v3.1.0

- Add `Waypoint.disableAll` and `Waypoint.enableAll` methods.
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "waypoints",
"version": "3.1.0",
"version": "3.1.1",
"main": "lib/noframework.waypoints.min.js",
"description": "Easily execute a function when you scroll to an element.",
"ignore": [
Expand Down
14 changes: 10 additions & 4 deletions lib/jquery.waypoints.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Waypoints - 3.1.0
Waypoints - 3.1.1
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
Expand Down Expand Up @@ -304,9 +304,11 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt

/* Private */
Context.prototype.innerHeight = function() {
if (this.element === this.element.window) {
/*eslint-disable eqeqeq */
if (this.element == this.element.window) {
return Waypoint.viewportHeight()
}
/*eslint-enable eqeqeq */
return this.adapter.innerHeight()
}

Expand All @@ -318,9 +320,11 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt

/* Private */
Context.prototype.innerWidth = function() {
if (this.element === this.element.window) {
/*eslint-disable eqeqeq */
if (this.element == this.element.window) {
return Waypoint.viewportWidth()
}
/*eslint-enable eqeqeq */
return this.adapter.innerWidth()
}

Expand All @@ -341,7 +345,9 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
/* Public */
/* http://imakewebthings.com/waypoints/api/context-refresh */
Context.prototype.refresh = function() {
var isWindow = this.element === this.element.window
/*eslint-disable eqeqeq */
var isWindow = this.element == this.element.window
/*eslint-enable eqeqeq */
var contextOffset = this.adapter.offset()
var triggeredGroups = {}
var axes
Expand Down
4 changes: 2 additions & 2 deletions lib/jquery.waypoints.min.js

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions lib/noframework.waypoints.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Waypoints - 3.1.0
Waypoints - 3.1.1
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
Expand Down Expand Up @@ -304,9 +304,11 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt

/* Private */
Context.prototype.innerHeight = function() {
if (this.element === this.element.window) {
/*eslint-disable eqeqeq */
if (this.element == this.element.window) {
return Waypoint.viewportHeight()
}
/*eslint-enable eqeqeq */
return this.adapter.innerHeight()
}

Expand All @@ -318,9 +320,11 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt

/* Private */
Context.prototype.innerWidth = function() {
if (this.element === this.element.window) {
/*eslint-disable eqeqeq */
if (this.element == this.element.window) {
return Waypoint.viewportWidth()
}
/*eslint-enable eqeqeq */
return this.adapter.innerWidth()
}

Expand All @@ -341,7 +345,9 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
/* Public */
/* http://imakewebthings.com/waypoints/api/context-refresh */
Context.prototype.refresh = function() {
var isWindow = this.element === this.element.window
/*eslint-disable eqeqeq */
var isWindow = this.element == this.element.window
/*eslint-enable eqeqeq */
var contextOffset = this.adapter.offset()
var triggeredGroups = {}
var axes
Expand Down
4 changes: 2 additions & 2 deletions lib/noframework.waypoints.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/shortcuts/infinite.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Waypoints Infinite Scroll Shortcut - 3.1.0
Waypoints Infinite Scroll Shortcut - 3.1.1
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
Expand Down
2 changes: 1 addition & 1 deletion lib/shortcuts/infinite.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 lib/shortcuts/inview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Waypoints Inview Shortcut - 3.1.0
Waypoints Inview Shortcut - 3.1.1
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
Expand Down
2 changes: 1 addition & 1 deletion lib/shortcuts/inview.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 lib/shortcuts/sticky.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Waypoints Sticky Element Shortcut - 3.1.0
Waypoints Sticky Element Shortcut - 3.1.1
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
Expand Down
2 changes: 1 addition & 1 deletion lib/shortcuts/sticky.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 lib/waypoints.debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Waypoints Debug - 3.1.0
Waypoints Debug - 3.1.1
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
Expand Down
14 changes: 10 additions & 4 deletions lib/zepto.waypoints.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Waypoints - 3.1.0
Waypoints - 3.1.1
Copyright © 2011-2015 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
Expand Down Expand Up @@ -304,9 +304,11 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt

/* Private */
Context.prototype.innerHeight = function() {
if (this.element === this.element.window) {
/*eslint-disable eqeqeq */
if (this.element == this.element.window) {
return Waypoint.viewportHeight()
}
/*eslint-enable eqeqeq */
return this.adapter.innerHeight()
}

Expand All @@ -318,9 +320,11 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt

/* Private */
Context.prototype.innerWidth = function() {
if (this.element === this.element.window) {
/*eslint-disable eqeqeq */
if (this.element == this.element.window) {
return Waypoint.viewportWidth()
}
/*eslint-enable eqeqeq */
return this.adapter.innerWidth()
}

Expand All @@ -341,7 +345,9 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
/* Public */
/* http://imakewebthings.com/waypoints/api/context-refresh */
Context.prototype.refresh = function() {
var isWindow = this.element === this.element.window
/*eslint-disable eqeqeq */
var isWindow = this.element == this.element.window
/*eslint-enable eqeqeq */
var contextOffset = this.adapter.offset()
var triggeredGroups = {}
var axes
Expand Down
4 changes: 2 additions & 2 deletions lib/zepto.waypoints.min.js

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "jquery-waypoints",
"version": "3.1.0",
"name": "waypoints",
"version": "3.1.1",
"author": "Caleb Troughton <[email protected]> (http://imakewebthings.com)",
"description": "A jQuery plugin that makes it easy to execute a function whenever you scroll to an element.",
"description": "Easily execute a function when you scroll to an element",
"scripts": {
"build": "gulp build",
"start": "gulp",
Expand All @@ -12,10 +12,9 @@
},
"repository": {
"type": "git",
"url": "https://github.com/imakewebthings/jquery-waypoints.git"
"url": "https://github.com/imakewebthings/waypoints.git"
},
"keywords": [
"jquery",
"scroll"
],
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions src/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@

/* Private */
Context.prototype.innerHeight = function() {
/*eslint-disable eqeqeq */
if (this.element == this.element.window) {
return Waypoint.viewportHeight()
}
/*eslint-enable eqeqeq */
return this.adapter.innerHeight()
}

Expand All @@ -152,9 +154,11 @@

/* Private */
Context.prototype.innerWidth = function() {
/*eslint-disable eqeqeq */
if (this.element == this.element.window) {
return Waypoint.viewportWidth()
}
/*eslint-enable eqeqeq */
return this.adapter.innerWidth()
}

Expand All @@ -175,7 +179,9 @@
/* Public */
/* http://imakewebthings.com/waypoints/api/context-refresh */
Context.prototype.refresh = function() {
/*eslint-disable eqeqeq */
var isWindow = this.element == this.element.window
/*eslint-enable eqeqeq */
var contextOffset = this.adapter.offset()
var triggeredGroups = {}
var axes
Expand Down

0 comments on commit 13ae054

Please sign in to comment.