Share Pastebin
Guest
Public paste!

failmode="default"

By: a guest | Feb 27th, 2010 | Syntax: JavaScript | Size: 0.27 KB | Hits: 487 | Expires: Never
Copy text to clipboard
  1. function getMacroHandler(name) {
  2.         if (name == ".." && this._parent) {
  3.                 return this._parent;
  4.         } else if (this[name]) {
  5.                 return this[name];
  6.         } else if (this.get(name)) {
  7.                 return this.get(name);
  8.         }
  9.        
  10.         return {
  11.                 getMacroHandler: function() {
  12.                         return this;
  13.                 }
  14.         };
  15. }