W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2015

[web-animations] please, clarify "The current ready promise is initially a resolved Promise"

From: Aleksei Semenov <a.semenov@unipro.ru>
Date: Fri, 16 Jan 2015 17:16:09 +0600
To: "public-fx@w3.org" <public-fx@w3.org>
Cc: "dom@unipro.ru" <dom@unipro.ru>
Message-ID: <op.xsjyw7ksfqy7hv@semenov-pc.unipro.ru>
Hello, everyone.

The Web Animations specification

> Each player has a current ready promise.The current ready promise is  
> initiallya resolved Promise created using theprocedure to create a new  
> resolved Promise.

Could you clarify what does "initially" mean?
Does it mean that right after creation of AnimationPlayer instance
its attribute 'ready' is a resolved Promise object?

AnimationPlayer instance can be created via AnimationPlayer constructor.
The specification of the constructor

> Creates a new AnimationPlayer object using the following procedure.
>  1. Let player be a new AnimationPlayer object.
> 2. Run the procedure to set the timeline of a player on player passing
> timeline as the new timeline.
> 3. Run the procedure to set the source content of a player on player
> passing source as the new content.

does not explicitly specify the value of attribute 'ready'.
The procedures mentioned at steps 2 and 3 are quite complex
and may or may not affect the attribute 'ready'.

Received on Friday, 16 January 2015 11:16:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:52 UTC