cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.8k forks source link

Problematic use of iscroll api object in knockoutJS model #1101

Open egaspro opened 8 years ago

egaspro commented 8 years ago

The problem is that direct pointers to DOM in knockout model is considered bad practice or even anti-pattern as, for example, you can not turn that model to simple object using "ko,toJS(koModel)". That happens when knockout model contains property containing iScroll api object