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
F14004118: D9699.diff
Sat, Oct 26, 3:42 PM
F13999561: D9699.diff
Thu, Oct 24, 3:36 PM
F13983869: D9699.id.diff
Sun, Oct 20, 9:18 AM
F13968718: D9699.id.diff
Oct 16 2024, 10:54 PM
Unknown Object (File)
Oct 12 2024, 11:43 AM
Unknown Object (File)
Oct 6 2024, 8:14 AM
Unknown Object (File)
Oct 5 2024, 10:43 AM
Unknown Object (File)
Sep 25 2024, 4:23 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).