Skip to content
This repository was archived by the owner on Jun 29, 2018. It is now read-only.

[#960183] Ensure we remove ready callbacks when they are called.#368

Open
ScottDowne wants to merge 2 commits intomozilla:masterfrom
ScottDowne:t960183
Open

[#960183] Ensure we remove ready callbacks when they are called.#368
ScottDowne wants to merge 2 commits intomozilla:masterfrom
ScottDowne:t960183

Conversation

@ScottDowne
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's shift first:

var cb = playerReadyCallbacks.shift();
cb();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to declare the callback at the top of this function scope, but otherwise, no isses.

haha, or playerReadyCallbacks.shift()();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants