/pyjs/tests/test037.js

http://pyjamas.googlecode.com/ · JavaScript · 9 lines · 9 code · 0 blank · 0 comment · 2 complexity · 674cd5c5981d741f4e83e7ca61d8e444 MD5 · raw file

  1. __Test.prototype.__class__ = "Test";
  2. function Test() {
  3. return new __Test();
  4. }
  5. function __Test() {
  6. }
  7. __Test.prototype.test = function(foo) {
  8. if (typeof foo == 'undefined') foo=5;
  9. };