Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
#96 router doesn't work in IE 11
Browse files Browse the repository at this point in the history
  • Loading branch information
barsh committed Sep 14, 2016
1 parent 2d7afc1 commit 815ba4f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
6 changes: 1 addition & 5 deletions dist/ko-component-router.js
Expand Up @@ -344,11 +344,7 @@ return /******/ (function(modules) { // webpackBootstrap
var _this = this;

if (this._queuedArgs) {
var _queuedArgs = _slicedToArray(this._queuedArgs, 3);

var p = _queuedArgs[2];

arguments[2] = p || push;
arguments[2] = this._queuedArgs[2] || push;
}
this._queuedArgs = arguments;

Expand Down
4 changes: 2 additions & 2 deletions dist/ko-component-router.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions lib/context.js
Expand Up @@ -75,11 +75,7 @@ var Context = function () {
var _this = this;

if (this._queuedArgs) {
var _queuedArgs = _slicedToArray(this._queuedArgs, 3);

var p = _queuedArgs[2];

arguments[2] = p || push;
arguments[2] = this._queuedArgs[2] || push;
}
this._queuedArgs = arguments;

Expand Down
3 changes: 1 addition & 2 deletions src/context.js
Expand Up @@ -47,8 +47,7 @@ export default class Context {

update(_, __, push) {
if (this._queuedArgs) {
const [,,p] = this._queuedArgs
arguments[2] = p || push
arguments[2] = this._queuedArgs[2] || push
}
this._queuedArgs = arguments

Expand Down

0 comments on commit 815ba4f

Please sign in to comment.