Skip to content

Instantly share code, notes, and snippets.

@parris
Created June 11, 2014 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parris/19d7aa373812fcdf5f5c to your computer and use it in GitHub Desktop.
Save parris/19d7aa373812fcdf5f5c to your computer and use it in GitHub Desktop.
define(function(require) {
var Backbone = require(‘backbone’),
backboneCanvasMixin = require(‘components/shapes/mixins/backbone_raphael_mixin’),
isMovable = require(‘components/shapes/mixins/is_movable’)
isRotatable = require(‘components/shapes/mixins/is_rotatable’)
// … and more ;
return Backbone.View.extend({})
.mixin(backboneCanvasMixin)
.mixin(isMovable)
.mixin(isRotatable)
.mixin(isSelectable)
.mixin(contextMenu);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment