Update jquery.scrollTo.js #98
|
I changed it to use jQuery.isPlainObject() just because that's what I expected the code to do. |
AndrewEastwood
commented
Nov 21, 2014
|
the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We really need this because when the
valisnullthen condition returnstrue(because oftypeof null == 'object'), and thebothfunction returnsnullvalue which is set tooffsetvariable. Later we have the following line #118attr[key] += offset[pos] || 0;and as theoffsetisnullwe get error message (totally sad face goes here).