0

I'm just getting started learning Backbone, and thought I'd try create a simple drawing application using the canvas element. Problem is, I'm not sure where, in the view, I should declare the 2D context object (if that's where I should declare it at all)?

I have a fiddle here, though it currently doesn't function. It does work on my local development environment though.

mu is too short
  • 426,620
  • 70
  • 833
  • 800
jdlm
  • 6,327
  • 5
  • 29
  • 49
  • Something like this http://stackoverflow.com/questions/10716478/making-a-backbone-js-view-to-draw-objects-on-a-canvas/10717534#10717534 ? – nikoshr Feb 06 '13 at 08:44
  • 1
    You're using old versions of Backbone (0.3.3) and Underscore (1.1.4); you'll have a better time if you use the latest versions (0.9.10 and 1.4.4): http://jsfiddle.net/ambiguous/KJyHD/ – mu is too short Feb 06 '13 at 18:40

0 Answers0