(target)
| 406 | |
| 407 | function findTarget(location) { |
| 408 | function jumpToTarget(target) { |
| 409 | var jumpPosition = getElementPosition(target); |
| 410 | |
| 411 | log('Moving to in page link (#'+hash+') at x: '+jumpPosition.x+' y: '+jumpPosition.y); |
| 412 | sendMsg(jumpPosition.y, jumpPosition.x, 'scrollToOffset'); // X&Y reversed at sendMsg uses height/width |
| 413 | } |
| 414 | |
| 415 | var |
| 416 | hash = location.split('#')[1] || location, //Remove # if present |
no test coverage detected
searching dependent graphs…