Skip to content

Instantly share code, notes, and snippets.

@chewbranca
Created June 30, 2012 17:05
Show Gist options
  • Save chewbranca/3024637 to your computer and use it in GitHub Desktop.
Save chewbranca/3024637 to your computer and use it in GitHub Desktop.
var app = {
renderView: function(baseView, selector, view, options, callback) {
baseView.setView(selector, new view(options)).render().then(callback);
}
};
app.renderView(this, "FAKEITEM", Views.Popover, {model:view.model}, function(popoverEle) {
$(el).find("i.database-info").popover({
title: "displaying info",
content: popoverEle.innerHTML
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment