Always draw midpoint handles within viewport (like #1840)
reset loc btw loop iterations (because hoisting)
add tests, jshint cleanup
Replace magic numbers in trimmedExtent with variables..
Merge pull request #2257 from bhousel/bhousel-midpoints

Always draw midpoint handles within viewport (like #1840)