Closed adambabik closed 10 years ago
Fix is used as a constructor. In JavaScript constructors cannot return plain values, they always return objects.
Fix
I fixed it by returning Error when omitting className argument and added a couple of lines to ensure that Fix is called with new operator.
Error
className
new
Great changes. Thank you.
You're welcome :)
Thanks for a really nice library. Saved me lots of time!
Fix
is used as a constructor. In JavaScript constructors cannot return plain values, they always return objects.I fixed it by returning
Error
when omittingclassName
argument and added a couple of lines to ensure thatFix
is called withnew
operator.