Skip to content

TypeError: Object doesn't support this action #139

@croeber

Description

@croeber

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);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions