Guest User

Untitled

a guest
Apr 25th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. module("Boldr", function(c) { with(c) {
  2. module("Hello", function() {
  3. def("hello", function() {
  4. alert("hello " + this.name);
  5. });
  6. });
  7.  
  8. constructor("MyClass", function() {
  9. include(Boldr.Hello);
  10.  
  11. def("initialize", function(name) {
  12. this.name = name;
  13. });
  14. });
  15. }});
  16.  
  17. var myClass = new Boldr.MyClass("world");
  18. myClass.hello();
Add Comment
Please, Sign In to add comment