Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p>If the <span>list of available images</span> contains an entry for <var>key</var>, run these
- <subsubsteps:</p>
- <ol>
- <li><p>Set the <span>ignore higher-layer caching</span> flag for that entry.</p></li>
- <li><p><span>Abort the image request</span> for the <span>current request</span> and the
- <<span>pending request</span>.</p></li>
- <li><p>Let <span>pending request</span> be null.</p></li>
- <li><p>Let <span>current request</span> be a new <span>image request</span> whose <span data-x
- <="img-req-data">image data</span> is that of the entry and whose state is set to the <span
- <data-x="img-all">completely available</span> state.</p></li>
- <li><p>Update the presentation of the image appropriately.</p></li>
- <li><p>Let the <span>current request</span>'s <span>current pixel density</span> be
- <<var>selected pixel density</var>.</p></li>
- <li><p><span>Queue a task</span> to <span>restart the animation</span> if <i>restart
- animation</i> is set. Change <span>current request</span>'s <span data-x="img-req-url">current
- URL</span> to <var>absolute URL</var>,and then <span>fire a simple event</span> named <code data-x
- ="event-load"> load</code> at the <code>img</code> element.
- <li><p>Abort the <span>update the image data</span> algorithm.</p></li>
- </ol>
- <!-- load is a simple event here loadstart and loadend do not fire -->
- </ol>
- </li>
Add Comment
Please, Sign In to add comment