Don't start the meat of the app until the inspected page is ready

The inspector reloads the page with the backboneAgent injected, so we
need to wait until the page is re-loaded to begin our inspector app.
Don't follow.



On Monday, October 20, 2014, Christian Maher <notifications@github.com>
wrote:

> In extension/js/devTools/client.js:
>
> >
> > +    _initializePageReady: function () {
> > +      var resolvePageReady;
> > +      this.pageReady = new Promise(function (resolve) {
> > +        resolvePageReady = resolve;
> > +      });
> > +      this.listenTo(this.inspectedPage, 'ready', function () {
> > +        resolvePageReady();
> > +      });
> > +    }
>
> if we make it an event, we only get the page readied-ness once, which I
> think is ok for our purposes.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/MarionetteLabs/marionette.inspector/pull/5/files#r19118640>
> .
>


-- 

-- 
Jason Laster
*Software Engineer*
  Etsy