Tip: Click lines to highlight, hold ctrl/cmd to multi-select

test2 (21-Apr @ 13:28)

Syntax Highlighted Code

  1. customClass = function () {
  2.   this.doJquery = function () {
  3.     $("element").click(function () {
  4.       this.foo = bar;
  5.       x = this.foo;
  6.     });
  7.   }
  8. }
  9. customObject = new customClass();
  10. customObject.doJquery;
  11.  

Plain Code

customClass = function () {
  this.doJquery = function () {
    $("element").click(function () {
      this.foo = bar;
      x = this.foo;
    });
  }
}
customObject = new customClass();
customObject.doJquery;

Codedump Run

Permalink: http://codedumper.com/test2