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
Unknown Object (File)
Sat, Apr 20, 7:10 PM
Unknown Object (File)
Fri, Apr 19, 6:20 AM
Unknown Object (File)
Tue, Apr 9, 4:20 PM
Unknown Object (File)
Tue, Apr 2, 8:48 AM
Unknown Object (File)
Sun, Mar 31, 9:54 AM
Unknown Object (File)
Thu, Mar 28, 8:04 AM
Unknown Object (File)
Thu, Mar 28, 8:04 AM
Unknown Object (File)
Mar 25 2024, 1:35 AM
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).