Hacker News new | comments | show | ask | jobs | submit login
Using jQuery, Plugins and UI Controls With Backbone (lostechies.com)
50 points by joshuacc on Feb 21, 2012 | hide | past | web | favorite | 3 comments

The biggest issue I run into with plugins and backbone is ones that rely on jquery position. The position api needs to be called after the element is attached to the dom and is not hidden. I like to encapsulate all the view logic within the view, but nothing alerts you to when the element has been attached and is no longer hidden. Typically I'll fire off an event in the router or parent view to then enable the plugin.

This is a big issue that I've hit up against as well.

For example, trying to tie a Backbone View (el, events) to a Twitter Bootstrap "Popover"(http://twitter.github.com/bootstrap/javascript.html#popovers) doesn't work in the "Backbone way" (we are talking about the same thing, correct?).

quickly looking at the bootstrap javascript they are making calls to $().offset which also doesn't work for hidden elements, so yes were talking about the same thing.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact