Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.observe("dom:loaded", function() {
- var test = new a;
- });
- var a = (function() {
- var a = Class.create({
- initialize: function() {
- new b(this.future_func);
- },
- future_func: function() {
- var later_func = function() {
- alert('hi');
- }
- return later_func;
- }
- });
- return a;
- })();
- var b = (function() {
- var b = Class.create({
- initialize: function(func) {
- func();
- }
- });
- return b;
- })();
Add Comment
Please, Sign In to add comment