Skip to content

Commit 13ae054

Browse files
Build and prepare for 3.1.1 release
1 parent 78cf295 commit 13ae054

17 files changed

+58
-31
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v3.1.1
4+
5+
- Fix bad `isWindow` checks causing errors in IE8-. (Issue #372)
6+
37
## v3.1.0
48

59
- Add `Waypoint.disableAll` and `Waypoint.enableAll` methods.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "waypoints",
3-
"version": "3.1.0",
3+
"version": "3.1.1",
44
"main": "lib/noframework.waypoints.min.js",
55
"description": "Easily execute a function when you scroll to an element.",
66
"ignore": [

lib/jquery.waypoints.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Waypoints - 3.1.0
2+
Waypoints - 3.1.1
33
Copyright © 2011-2015 Caleb Troughton
44
Licensed under the MIT license.
55
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
@@ -304,9 +304,11 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
304304

305305
/* Private */
306306
Context.prototype.innerHeight = function() {
307-
if (this.element === this.element.window) {
307+
/*eslint-disable eqeqeq */
308+
if (this.element == this.element.window) {
308309
return Waypoint.viewportHeight()
309310
}
311+
/*eslint-enable eqeqeq */
310312
return this.adapter.innerHeight()
311313
}
312314

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

319321
/* Private */
320322
Context.prototype.innerWidth = function() {
321-
if (this.element === this.element.window) {
323+
/*eslint-disable eqeqeq */
324+
if (this.element == this.element.window) {
322325
return Waypoint.viewportWidth()
323326
}
327+
/*eslint-enable eqeqeq */
324328
return this.adapter.innerWidth()
325329
}
326330

@@ -341,7 +345,9 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
341345
/* Public */
342346
/* http://imakewebthings.com/waypoints/api/context-refresh */
343347
Context.prototype.refresh = function() {
344-
var isWindow = this.element === this.element.window
348+
/*eslint-disable eqeqeq */
349+
var isWindow = this.element == this.element.window
350+
/*eslint-enable eqeqeq */
345351
var contextOffset = this.adapter.offset()
346352
var triggeredGroups = {}
347353
var axes

lib/jquery.waypoints.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/noframework.waypoints.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Waypoints - 3.1.0
2+
Waypoints - 3.1.1
33
Copyright © 2011-2015 Caleb Troughton
44
Licensed under the MIT license.
55
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
@@ -304,9 +304,11 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
304304

305305
/* Private */
306306
Context.prototype.innerHeight = function() {
307-
if (this.element === this.element.window) {
307+
/*eslint-disable eqeqeq */
308+
if (this.element == this.element.window) {
308309
return Waypoint.viewportHeight()
309310
}
311+
/*eslint-enable eqeqeq */
310312
return this.adapter.innerHeight()
311313
}
312314

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

319321
/* Private */
320322
Context.prototype.innerWidth = function() {
321-
if (this.element === this.element.window) {
323+
/*eslint-disable eqeqeq */
324+
if (this.element == this.element.window) {
322325
return Waypoint.viewportWidth()
323326
}
327+
/*eslint-enable eqeqeq */
324328
return this.adapter.innerWidth()
325329
}
326330

@@ -341,7 +345,9 @@ https://github.com/imakewebthings/waypoints/blog/master/licenses.txt
341345
/* Public */
342346
/* http://imakewebthings.com/waypoints/api/context-refresh */
343347
Context.prototype.refresh = function() {
344-
var isWindow = this.element === this.element.window
348+
/*eslint-disable eqeqeq */
349+
var isWindow = this.element == this.element.window
350+
/*eslint-enable eqeqeq */
345351
var contextOffset = this.adapter.offset()
346352
var triggeredGroups = {}
347353
var axes

lib/noframework.waypoints.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/shortcuts/infinite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Waypoints Infinite Scroll Shortcut - 3.1.0
2+
Waypoints Infinite Scroll Shortcut - 3.1.1
33
Copyright © 2011-2015 Caleb Troughton
44
Licensed under the MIT license.
55
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt

lib/shortcuts/infinite.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/shortcuts/inview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
Waypoints Inview Shortcut - 3.1.0
2+
Waypoints Inview Shortcut - 3.1.1
33
Copyright © 2011-2015 Caleb Troughton
44
Licensed under the MIT license.
55
https://github.com/imakewebthings/waypoints/blog/master/licenses.txt

lib/shortcuts/inview.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)