Skip to content

Instantly share code, notes, and snippets.

@kristoferjoseph
Created July 31, 2013 12:01
Show Gist options
  • Save kristoferjoseph/6121389 to your computer and use it in GitHub Desktop.
Save kristoferjoseph/6121389 to your computer and use it in GitHub Desktop.
Example of integrating jQuery plugin
var GridView = Backbone.View.extend({
el: "#gridContainer",
$gridEl: undefined,
cartilage: undefined,
initialize: function () {
this.gridUndoHelper = new GridOriginator();
_.bindAll(this, "render");
this.$gridEl = $("<div id='grid'></div>");
this.cartilage = this.$gridEl.Cartilage(this.model.toJSON());
},
render: function () {
this.cartilage.render();
//... redacted
}
//... continued
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment