| Summary: | tooltip.js errors | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Client | Assignee: | Project Inbox <orion.client-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | emoffatt |
| Version: | 7.0 | ||
| Target Milestone: | 8.0 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
oops, thought I'd already addressed that one...thanks ! This was an aborted attempt to manage multi-line annotations... I've amended the code to use the textModel's 'getLineEnd' API... http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=428b5066175db80876d94167f2b6412a4df2e2c7 To test this we need a multi-line annotation. The best way to get one is to put a return statement before an 'if' block (making it unreachable). |
Using master, when I hover over certain JS code, I am getting errors from tooltip.js. Specifically these lines: > if (curLine !== endLine) { > start = tv.getLineStart(curLine); > end = tv.getLineEnd(curLine); // ! throws an error > } Here 'tv' is a TextView and there is no #getLineEnd() method defined on TextViews.