Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > My Library API Reference error

Reply
Thread Tools

My Library API Reference error

 
 
johnwlockwood
Guest
Posts: n/a
 
      03-26-2010
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
 
Reply With Quote
 
 
 
 
David Mark
Guest
Posts: n/a
 
      03-26-2010
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!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Library Reference : ri :: Language Reference : ? Kedar Mhaswade Ruby 1 01-16-2011 08:59 AM
is PyCodec_Encode() API returns New reference or Borrowed reference rahul Python 1 04-21-2009 02:59 AM
Reference counting and API (const reference vs pointer oriented) mathieu C++ 8 08-31-2008 09:05 AM
Python Library Reference is tutorial, not reference aurora Python 6 10-18-2004 07:38 AM
linking error (using interbase 6.0 API library) Venky C Programming 1 10-10-2003 09:27 PM



Advertisments