XmlAspect.org/Xml4jQuery/api/sleep

From ApiFusion
Jump to: navigation, search
  1. $.sleep().xmlTransform(xmlUrl,xslUrl,el)
    
  2. $(el).sleep().hide()
    

Creates the promise, waits given time in milliseconds, invokes callback and resolves the promise.

Arguments

  1. ms /* milliseconds before resolved. Optional. Defaults to 0 */
    
  2. callback /* invoked before the chain continues. Optional. */
    

Return

The promises chain shimmed the jQuery and Xml4jQuery methods.

Notes

$.sleep() and $().sleep()

without arguments acts same way as $then():

$.$then() and $().$then()

Callback arguments also same as in $then().