Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Object doesn't support this action #139

Closed
croeber opened this issue Jul 10, 2017 · 1 comment
Closed

TypeError: Object doesn't support this action #139

croeber opened this issue Jul 10, 2017 · 1 comment
Labels
Milestone

Comments

@croeber
Copy link

croeber commented Jul 10, 2017

The common_1.extend function errors in Internet Explorer 11. I am using the import 'core-js/es6/object' polyfill, core-js 2.4.1 and angular cli.

Error
TypeError: Object doesn't support this action
at BaseLocationServices.prototype.url (http://localhost:4200/vendor.bundle.js:15051:17)

var common_1 = __webpack_require__("../../../../@uirouter/core/lib/common/common.js");
BaseLocationServices.prototype.url = function (url, replace) {
	if (replace === void 0) {
		replace = true;
	}
	if (predicates_1.isDefined(url) && url !== this._get()) {
		this._set(null, null, url, replace);
		if (this.fireAfterUpdate) {
			var evt_1 = common_1.extend(new Event("locationchange"), { url: url }); //Errors Here
			this._listeners.forEach(function (cb) {
				return cb(evt_1);
			});
		}
	}
	return utils_1.buildUrl(this);
};
@aitboudad
Copy link
Contributor

see ui-router/core#64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants