Difference between revisions of "Dependent gliders"

From JSXGraph Wiki
Jump to: navigation, search
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') {

Revision as of 21:56, 10 January 2012