Posts by c0de • 365 points
3 posts
-
9
votes4
answers845
viewsA: Is it possible to access an object within itself?
var Cadastro = { descricao: "Novo usuário", editando: false, get titulo() { if (this.editando) { return "Editar"; } else { return "Criar"; } } }; console.log(Cadastro.titulo); Cadastro.editando =…
-
16
votes4
answers845
viewsQ: Is it possible to access an object within itself?
Cadastro = { "descricao" : "Novo usuário", "editando" : false } It is possible at runtime I get the value of the property by "editing" and use it? Something like: Cadastro = { "descricao" : "Novo…
-
1
votes0
answers58
viewsQ: How to detect Warning Deferred long-running timer task(s)?
Developing an application using Cordova this error started to appear after using some methods (after this Warning occurs the function stops being called). I wonder if there’s any way I can detect…