Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Commit

Permalink
Fix function initiation toLowerCase -> toLowerCase()
Browse files Browse the repository at this point in the history
  • Loading branch information
rgalus committed Jan 23, 2017
1 parent 78b35f0 commit ccbc522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sticky.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Sticky {
element.sticky.rect = this.getRectangle(element);

// fix when element is image that has not yet loaded and width, height = 0
if (element.tagName.toLowerCase === 'img') {
if (element.tagName.toLowerCase() === 'img') {
element.onload = () => element.sticky.rect = this.getRectangle(element);
}

Expand Down

0 comments on commit ccbc522

Please sign in to comment.