Skip to content

Commit 78cf295

Browse files
isWindow check should not use strict equality
1 parent a7275c6 commit 78cf295

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/context.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138

139139
/* Private */
140140
Context.prototype.innerHeight = function() {
141-
if (this.element === this.element.window) {
141+
if (this.element == this.element.window) {
142142
return Waypoint.viewportHeight()
143143
}
144144
return this.adapter.innerHeight()
@@ -152,7 +152,7 @@
152152

153153
/* Private */
154154
Context.prototype.innerWidth = function() {
155-
if (this.element === this.element.window) {
155+
if (this.element == this.element.window) {
156156
return Waypoint.viewportWidth()
157157
}
158158
return this.adapter.innerWidth()
@@ -175,7 +175,7 @@
175175
/* Public */
176176
/* http://imakewebthings.com/waypoints/api/context-refresh */
177177
Context.prototype.refresh = function() {
178-
var isWindow = this.element === this.element.window
178+
var isWindow = this.element == this.element.window
179179
var contextOffset = this.adapter.offset()
180180
var triggeredGroups = {}
181181
var axes

0 commit comments

Comments
 (0)