[Bug 25007] [imports]: Want LinkImport.ready() to return promise.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25007

Jake Archibald <jaffathecake@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jaffathecake@gmail.com

--- Comment #1 from Jake Archibald <jaffathecake@gmail.com> ---
Some details from the discussion at
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2014-March/042201.html

* This should be .loaded(), "ready" will be used for non-load events, such as
document.ready()
* This should reject with InvalidStateError if href isn't set

Should promise-vending functions without arguments take onFulfilled &
onRejected callbacks?

Eg, it's currently:

var promise = link.loaded().then(onFulfilled, onRejected);

Should we allow:

var promise = link.loaded(onFulfilled, onRejected);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 14 March 2014 10:17:08 UTC