Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module("Boldr", function(c) { with(c) {
- module("Hello", function() {
- def("hello", function() {
- alert("hello " + this.name);
- });
- });
- constructor("MyClass", function() {
- include(Boldr.Hello);
- def("initialize", function(name) {
- this.name = name;
- });
- });
- }});
- var myClass = new Boldr.MyClass("world");
- myClass.hello();
Add Comment
Please, Sign In to add comment