Dependent gliders: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
brd.addHook(function() { | brd.addHook(function() { | ||
var o; | var o; | ||
if (typeof brd.touches != 'undefined && brd.touches.length>0) { | if (typeof brd.touches != 'undefined' && brd.touches.length>0) { | ||
o = brd.touches[0].obj; | o = brd.touches[0].obj; | ||
} else if (typeof brd.mouse.obj != 'undefined') { | } else if (typeof brd.mouse.obj != 'undefined') { |