Page MenuHomePhabricator

Make JX.Aphlict a real singleton with a more sensible initialization order
ClosedPublic

Authored by epriestley on Jun 23 2014, 9:08 PM.
Tags
None
Referenced Files
F14713522: D9699.diff
Fri, Jan 17, 4:36 PM
Unknown Object (File)
Sat, Jan 11, 5:21 PM
Unknown Object (File)
Fri, Jan 3, 3:10 PM
Unknown Object (File)
Dec 12 2024, 11:09 AM
Unknown Object (File)
Dec 11 2024, 12:13 AM
Unknown Object (File)
Dec 7 2024, 11:20 AM
Unknown Object (File)
Oct 26 2024, 3:42 PM
Unknown Object (File)
Oct 24 2024, 3:36 PM
Subscribers

Details

Summary

Ref T5373. The control flow between aphlict-listener and JX.Aphlict is pretty weird right now, where the listener (which is the highest-level component) has intimate knowledge of how to put the SWF on the page.

Instead:

  • Make JX.Aphlict a real singleton.
  • Instantiate it sooner.
  • Have it handle the flash setup handshake.
Test Plan

Loaded page in debug mode, saw normal flow take place.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Make JX.Aphlict a real singleton with a more sensible initialization order.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: joshuaspence.
support/aphlict/client/src/AphlictClient.as
61

This event was purely informational and served no real purpose. We can get everything we need with status events instead.

webroot/rsrc/js/application/aphlict/behavior-aphlict-listen.js
105

This event is gone; now we just use "status = ready".

This revision is now accepted and ready to land.Jun 23 2014, 9:16 PM
epriestley updated this revision to Diff 23286.

Closed by commit rPdd91732df338 (authored by @epriestley).