| Summary: | Error stripe not updated | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Steve Northover <steve_northover> |
| Component: | JS Tools | Assignee: | Project Inbox <orion.client-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Olivier_Thomann |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Steve, I cannot reproduce this one. You would need to show me how to get it. I tried with the change for bug 488530. Maybe this was a side-effect of it. Can you try again in self-hosting in a workspace in which you got the fix for bug 488530? Thanks. Cannot recreate this one either. |
1) get minesweeper-objects 1.5) make sure you have .tern-project configured to see index.html 2) add junk.js next to main.js 3) junk.js function squareAt(i, j) { } function initBoard () { var rows = 10, columns = 10; for (var i=0; i<rows; i++) { for (var j=0; j<columns; j++) { if (!squareAt(i, j).image) { var awayCount = 0; for (k=i-1; k<i+2; k++) { for (l=j-1; l<j+2; l++) { if (0 <= k && k < rows) { if (0 <= l && l < columns) { if (squareAt(k, l).image === mine) awayCount++; } } } } if (awayCount !== 0) squareAt(i, j).image = "images/" + awayCount + "mines.gif"; } } } } 4) edit index.html to reference junk.js 5) fix the errors one by one in junk.js 6) BUG: when you are done, there are still errors in the error strip 7) Refresh they are gone