darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

Store reference into data at instantiate #213

Closed vedmaka closed 9 years ago

vedmaka commented 9 years ago

Store reference in data element at instantiate to allow calling via proxy

darsain commented 9 years ago

As stated in #212, I agree that data referencing should be moved to Sly init, but it needs a little more code than that. We need to remove data storing from jQuery proxy, and add data clearing to .destroy() method.

So I'm not gonna merge this, but I'm gonna go and implement needed stuff right now. brb :)