bepu5q
Last Updated: February 25, 2016
·
500
· kaareal

Global $selectors are as bad as global vars

For any widget, backbone view ... always write dom centric code, never select elements outside the widget boundary.

Makes it much easier to debug, and maintain and avoid issues where the dom tree has been changed without your widget know about it.