PageRenderTime 47ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/pyjs/tests/test010.js

http://pyjamas.googlecode.com/
JavaScript | 10 lines | 10 code | 0 blank | 0 comment | 0 complexity | 5a5f3b8957172af8a0db18a85aac1c82 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
  1. __Hello.prototype.__class__ = "Hello";
  2. function Hello() {
  3. return new __Hello();
  4. }
  5. function __Hello() {
  6. }
  7. __Hello.prototype.onModuleLoad = function() {
  8. var b = ui_Button("Click me");
  9. ui_RootPanel().add(b);
  10. };