class GelatoRouter extends Backbone.Router {

  execute(callback, params) {
    if (this.page) {
      this.page.remove();
    }
    callback.apply(this, params);
  }

  start(options) {
    options = options || {};
    options.pushState = options.pushState || Gelato.isWebsite();
    options.root = options.root || '/';
    return Backbone.history.start({
      pushState: options.pushState,
      root: options.root
    });
  }

}

Gelato = Gelato || {};

Gelato.Router = GelatoRouter;

class GelatoRouter extends Backbone.Router {

  execute(callback, params) {
    if (this.page) {
      this.page.remove();
    }
    callback.apply(this, params);
  }

  start(options) {
    options = options || {};
    return Backbone.history.start({
      pushState: options.pushState,
      root: options.root
    });
  }

}

Gelato = Gelato || {};

Gelato.Router = GelatoRouter;

Remove default options from router start
Remove default options from router start
