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

ReferenceError: 'PathObserver' is undefined #46

Closed
brugh opened this issue Jun 3, 2015 · 2 comments
Closed

ReferenceError: 'PathObserver' is undefined #46

brugh opened this issue Jun 3, 2015 · 2 comments

Comments

@brugh
Copy link

brugh commented Jun 3, 2015

this module works perfectly in chrome but it isn't working with Internet Explorer despite the late bootstrap call. I have this:

<!DOCTYPE html>
<html lang="en" >
<head>
    <title>my app</title>
    <base href="/">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="mobile-web-app-capable" content="yes">
    <script type="text/html" src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
    <link rel="import" href="elements.html">
    <link rel="stylesheet" href="style.css">
</head>
<body unresolved fullbleed layout vertical ng-app="myApp" ng-controller="myController">
  <core-scaffold>
...
  </core-scaffold>
  <script src="bower_components/angular/angular.min.js"></script>
  <script src="bower_components/ng-polymer-elements/ng-polymer-elements.min.js"></script>
  <script src="app.js"></script>
</body>
</html>

and app.js has this:

function bootstrap() {
   angular.bootstrap(wrap(document), ['myApp']);
}
if(angular.isDefined(document.body.attributes['unresolved'])) {
   var readyListener = function() {
      bootstrap();
      window.removeEventListener('polymer-ready', readyListener);
   }
   window.addEventListener('polymer-ready', readyListener);
} else {
   bootstrap();
}

but still got the PathObserver error. Am I using it wrong?

@Inrego
Copy link

Inrego commented Jun 6, 2015

I have the same issue. I believe it may be because this project is made for polymer 0.x, and I am using Polymer 1.0

@GabiAxel
Copy link
Owner

GabiAxel commented Jul 1, 2015

Version 0.3.0 dropped the observe-js dependency in favour of native Object.observe(), which can be polyfilled. See the updated documentation.

@GabiAxel GabiAxel closed this as completed Jul 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants