code: function (selector, ctx) {
        if (typeof selector !== 'string') {
          return null;
        }
  
        var _ctx = $.mainApp()
          , elems = [];
  
        if (typeof ctx === 'string') {
          _ctx = this.cache[ctx];
        } else if (typeof ctx !== 'undefined') {
          _ctx = ctx;
        }
  
        $.target().pushTimeout(0);
        if (selector === 'alert') {
          var alert = $.mainApp().alert();
          if (alert) {
            elems = $(alert);
          }
        } else {
          elems = $(selector, _ctx);
        }
        $.target().popTimeout();
  
        return elems;
      }
docs: Element lookup functions