This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Gallery Pastebin - Paste and link to it

Posted by phinze Wed 2nd Jul 2008 19:53

Description: Example of JS OOP.
  1. function ClassName( arg1, arg2 )
  2. {
  3.     BaseClass.call( this, arg1, arg2 );
  4. }
  5. ClassName.prototype = new BaseClass();
  6. ClassName.prototype.f1 = function ClassName_f1( arg1 )
  7. {
  8.     BaseClass.prototype.f1.call( this, arg1 );
  9. }
  10. ClassName.prototype.f2 = function()
  11. {
  12.     BaseClass.prototype.f2.apply( this, arguments );
  13. }
  14. ClassName.prototype.v1 = 1;
  15.  

PermaLink to this entry http://tools.gallery2.org/pastebin/2005 Download 2005.txt
Submit a correction or amendment below. (click here to make a fresh posting)

Your Name
Syntax:
For (optional)
Leave permalink as note for user. Remember my name in a cookie

Select channel for announcement:
#gallery#gallery-support

Code: To ensure legibility, keep your code lines under 80 characters long.

You can highlight lines: start with "@#" and end with "!#"

Description: You can leave a small description for your code. (Errors, etc)

Please note that your script will be available publicly.
Page generated in 0.039 seconds.