material icon indicating copy to clipboard operation
material copied to clipboard

Exception in IE11 strict mode

Open jb29 opened this issue 11 years ago • 1 comments

In angular-material 0.10.1-rc4 IE11 throws the following error while in strict mode:

Assignment to read-only properties is not allowed in strict mode

Cause is an undeclared variable in line 2498 (function findParent(), variable parent)

/**
 * Search for parent at insertion time, if not specified
 */
function findParent(element, options) {

  // Search for parent at insertion time, if not specified
  if (angular.isFunction(options.parent)) {
    parent = options.parent(options.scope, element, options);
  } else if (angular.isString(options.parent)) {
    parent = angular.element($document[0].querySelector(options.parent));
  } else {
    parent = angular.element(options.parent);
  }

  // ...
}

image

jb29 avatar Jul 31 '15 09:07 jb29

Fixed https://github.com/angular/material/commit/af052358a0f606c7c43aafe34e20a6cdf53975b2

ThomasBurleson avatar Jul 31 '15 13:07 ThomasBurleson