You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2019. It is now read-only.
There's a little issue with toArray() method. If you use custom attribute like 'data-foobar' you always get an 'undefined' for every element and returned array is just a bunch of commas. Problem's with this line:
attrs.push($(this).prop(attr))
'data-foobar' is an attribute, not property. At least, that was in my case. I changed it to this:
attrs.push($(this).attr(attr))
and it started working properly. Might be worth looking into.
UPD:
In case you still have interest in your script, I ended up with this code:
There's a little issue with toArray() method. If you use custom attribute like 'data-foobar' you always get an 'undefined' for every element and returned array is just a bunch of commas. Problem's with this line:
'data-foobar' is an attribute, not property. At least, that was in my case. I changed it to this:
and it started working properly. Might be worth looking into.
UPD:
In case you still have interest in your script, I ended up with this code:
The text was updated successfully, but these errors were encountered: