Loading ...

Copying methods from one class to other in Javascript

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  client side web development   » Copying methods from one class to other in Javascript

Copying methods from one class to other in Javascript

Posts under the topic: Copying methods from one class to other in Javascript

Posted: 7/18/2010

Lurker 170  points  Lurker
  • Joined on: 10/17/2009
  • Posts: 34

Hi Experts,

I have two classes A and B in Javascript. I have 10 methods in class A, I want to copy all those methods to B How can I do so programatically.


tags javascript

Posted: 7/19/2010

Professional 8495  points  Professional
  • Joined on: 5/3/2010
  • Posts: 389

Can you please be more specific what you really want to achieve?

You want to itterate through all methods/function in one javascript class or ?

Also, providing your code will help us much more in understanding what you have and what you need :).

Regards,
Hajan


Posted: 7/25/2010

Guru 16518  points  Guru
  • Joined on: 4/19/2009
  • Posts: 483
  Answered

Hi Shawn,

 

Please check the below link for it, I have just written blog on it.

http://codeasp.net/blogs/raghav_khunger/microsoft-net/821/javascript-copy-methods-from-one-class-to-other

 

Thanks,

Raghav


tags javascript
Page 1 of 1 (3 items)