Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Pathobserver on document.title - works in ff, not in chrome #126

Open
commonpike opened this issue Dec 30, 2015 · 1 comment
Open

Pathobserver on document.title - works in ff, not in chrome #126

commonpike opened this issue Dec 30, 2015 · 1 comment

Comments

@commonpike
Copy link

This may have been reported in a more cryptic way :-)

This code

var observer = new PathObserver(document, 'title');
observer.open(function(newValue, oldValue) {
    console.info(newValue,oldValue)
});

does nothing in chrome, which supports object.observe(), but works fine in firefox, using Platform.performMicrotaskCheckpoint();

That only happens to the document.title. Perhaps there is something special about the variable in Chrome ? It doesn't give any warnings (I know window.title would be refused by chrome, but that spawns a warning).

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

No branches or pull requests

2 participants
@commonpike and others