Categories

ep()

Categories: Core

ep()

Plugin: ep.core

Description: An alias of jQuery() including the ep API.

The ep() method supports all syntax versions of the jQuery() method, on default the ep API based on the jQuery API will used.

  • Run a method of the ep API.

    HTML:
    <div id="foo">
      <p>My Text ...</p>
    </div>
    
    Code:
    // .busy() extists only for the ep API
    
    ep('#foo').busy()
    
    Results:
    <div id="foo">
      <p>My Text ...</p>
      <div class="ep-busy"></div>
    </div>
    
    
  • Run a method of the ep API, without select the ep API.

    HTML:
    <div id="foo">
      <p>My Text ...</p>
    </div>
    
    Code:
    $('#foo').busy()
    
    Results:
    
    // error busy is not a function
    <div id="foo">
      <p>My Text ...</p>
    </div>