Bug #667
open
Multiple alerts in a row will only display the last in the AOZ Viewer.
Added by Brian Flanagan almost 4 years ago.
Updated about 3 years ago.
Description
Related to Bug #662
Only the last alert called will be displayed.
{ alert('alert 1'); }
{ alert('alert 2'); }
{ alert('alert 3'); }
The above code will ONLY display 'alert 3', since processing continues instead of waiting for the user action.
- Subject changed from Two alerts in a row will only display the first in the AOZ Viewer. to Multiple alerts in a row will only display the last in the AOZ Viewer.
- Assignee set to Baptiste Bideaux
Re-tested in 1.0.0 (B5) Still fails.
- Affected version changed from 1.0.0 (B3) to 1.0.0 (B5)
- Affected version changed from 1.0.0 (B5) to 1.0.0 (B7)
It's worse. Now, it doesn't work at all. Gets an Internal error.
Console errors:
atom.warn is not a function
raoz.js:1061 TypeError: atom.warn is not a function
at AOZView.window.warn (/Users/brian/AOZ_Studio/aoz/IDE/.atom/packages/aoz-studio/lib/aoz-studio-view.js:249)
at self.iframe.contentWindow.alert (/Users/brian/AOZ_Studio/aoz/IDE/.atom/packages/aoz-studio/lib/ui/aoz-viewer.js:843)
at Application.blocks.<computed> (VM14954 application.js:48)
at AOZ.runBlocks (VM14953 raoz.js:769)
at doUpdate (VM14953 raoz.js:443)
raoz.js:495 Internal error
at line: 1, column: 1 in file main.aoz.
Tried this again with 1.0.0 (B7) rev 4/20
It still fails entirely, but with a different error.
Instead of "not a function", it now gets an "Illegal invocation" error.
Related to bug #728
NOTE: It fails when in the AOZ Viewer.
In a web browser, it works properly, since it is using the normal browser alert box.
- Status changed from New to Resolved
- Target version set to 1.0.0 (B10) u16
Re-tested in 1.0.0 (B10) u16
Works!
Also available in: Atom
PDF