My Library API Reference error

Discussion in 'Javascript' started by johnwlockwood, Mar 26, 2010.

  1. Hi Dave,

    I was trying out your My Library and dispatchEvent wasn't working for
    me based on:
    > Examples
    > API.dispatchEvent('click', el);


    I then payed attention to the Syntax and it showed the element is the
    first arg. once I change my code to follow, it worked.

    -John
     
    johnwlockwood, Mar 26, 2010
    #1
    1. Advertising

  2. johnwlockwood

    David Mark Guest

    johnwlockwood wrote:
    > Hi Dave,
    >
    > I was trying out your My Library and dispatchEvent wasn't working for
    > me based on:
    >> Examples
    >> API.dispatchEvent('click', el);


    Apologies for the misprint. Syntax was right, but the example that
    followed had the arguments swapped. I fixed it.

    >
    > I then payed attention to the Syntax and it showed the element is the
    > first arg. once I change my code to follow, it worked.
    >


    Glad it is working for you. Thanks for the heads up!
     
    David Mark, Mar 26, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Venky
    Replies:
    1
    Views:
    773
    Eric Sosman
    Oct 10, 2003
  2. aurora
    Replies:
    6
    Views:
    403
    =?ISO-8859-1?Q?Michael_Str=F6der?=
    Oct 18, 2004
  3. mathieu
    Replies:
    8
    Views:
    518
    Juha Nieminen
    Aug 31, 2008
  4. rahul
    Replies:
    1
    Views:
    261
    Benjamin Peterson
    Apr 21, 2009
  5. Kedar Mhaswade
    Replies:
    1
    Views:
    107
    Ryan Davis
    Jan 16, 2011
Loading...

Share This Page