melanke / Watch.JS

watch the changes of any object or attribute

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

document.cookie cannot be watched?

vekexasia opened this issue · comments

I'm trying to watch document.cookie using

watch(document, "cookie", function() {
console.log(arguments);
});

but it never triggers.

Usually you will use WatchJS to observe your own objects. Since document.cookie is implemented by the browser it may be constructed in a different way.