Use the history object in an iframe

This prevents the cases where history.pushState and History.prototype.pushState are overwritten.
LGTM


On Tuesday, July 22, 2014, Andrew Braunstein <notifications@github.com>
wrote:

> In src/client/main.js:
>
> > @@ -43,6 +44,18 @@ spf.main.init = function(opt_config) {
> >
> >
> >  /**
> > + * Checks to see if SPF can be initialized.
> > + *
> > + * @return {boolean}
> > + * @private
> > + */
> > +spf.main.canInit_ = function() {
> > +  return !!(typeof window.history.pushState == 'function' ||
>
> Since this happens on page load, I wanted to allow for short circuit
> behavior when window.history.pushState exists, which is 98% of the time.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/youtube/spfjs/pull/26/files#r15261206>.
>


-- 
- Alex