On Sep 10, 2013, at 1:31 PM, Vidor Gencel <vido...@gmail.com> wrote:

> I have problems with simple push on ffos. Here is my code:
> 
> 
>    var endpoint;
>    $(document).ready(function() {
>        registerPush();
>        navigator.mozSetMessageHandler("push", function(message) {
>            if(message.pushEndpoint == endpoint) {

…

Could this be a scoping issue? What happens if you move the ‘var endpoint;’ 
into the ‘$document.ready’ function?

 S.


_______________________________________________
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to