angular.js/docs/content
Keir Mierle 8c75b5f55a 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
2013-04-22 12:52:08 +01:00
..
api docs(module): fixed module example and corrected typos 2012-09-06 16:06:23 -07:00
cookbook fix(ngRepeat): prevent initial duplicates 2013-04-11 23:06:07 -07:00
guide docs(compiler): fix variable scope in drag sample 2013-04-22 12:52:08 +01:00
misc docs(tutorial): testacular renamed to karma 2013-04-15 12:28:31 +01:00
tutorial docs(tutorial): testacular renamed to karma 2013-04-15 12:28:31 +01:00