Skip to content

Instantly share code, notes, and snippets.

@jayd3e
Created May 28, 2012 18:26
Show Gist options
  • Save jayd3e/2820453 to your computer and use it in GitHub Desktop.
Save jayd3e/2820453 to your computer and use it in GitHub Desktop.
this.$ is undefined
(function(Group) {
/*
*
* Models
*
*/
Group.Model = Backbone.Model.extend({
urlRoot: "groups"
});
/*
*
* Collections
*
*/
/*
*
* Views
*
*/
Group.Views.GroupCondensedView = Backbone.Model.extend({
events: {
"click .group button.primary": "subscribe",
"click .group button.dark": "unsubscribe"
},
subscribe: function() {
},
unsubscribe: function() {
}
});
Group.Views.GroupListView = Backbone.Model.extend({
el: $("#groups"),
initialize: function() {
groups = this.$(".group");
$.each(groups, function(index, group) {
$.noop();
});
}
});
})(clusterflunk.module("group"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment