aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.mvc.understanding_model.ngdoc
diff options
context:
space:
mode:
authorKeir Mierle2013-04-21 16:37:53 -0700
committerPete Bacon Darwin2013-04-22 12:52:43 +0100
commitde5352cfcfa3705bb2ea9f1ca4ee71a2ce18ceb5 (patch)
tree99a43e40f29c5ed54a8fa052a3953cbc3426cb7f /docs/content/guide/dev_guide.mvc.understanding_model.ngdoc
parentae26ed994e6df3c178e9c6e1346d6e4e6b7736ad (diff)
downloadangular.js-de5352cfcfa3705bb2ea9f1ca4ee71a2ce18ceb5.tar.bz2
docs(compiler): fix variable scope in drag sample
Note that without this fix, if you add a second draggable element, the two instances clobber each other since there is only one set of startx/starty/x/y variables. Here is an example: http://plnkr.co/edit/aGrLXcIo2SuaePuAdfmQ?p=preview. On the surface it looks like it would be fine because you only have one mouse but in practice the start position jumps when you start dragging. Here it is fixed: http://plnkr.co/edit/VuvPasuumtCeiVRisYKQ?p=preview
Diffstat (limited to 'docs/content/guide/dev_guide.mvc.understanding_model.ngdoc')
0 files changed, 0 insertions, 0 deletions