From 1ea210d97969bc8da465c0f35b2abd3678af08e3 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Fri, 17 Jan 2014 13:55:02 +0200 Subject: web client: checkbox rendering: eliminate race condition parent not always created before its class property is set --- web/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web') diff --git a/web/client.js b/web/client.js index 4ef6859..5751edc 100644 --- a/web/client.js +++ b/web/client.js @@ -531,7 +531,6 @@ $(function() { self.setStatus(status); }); } - handleRequest(this.requestData(value, meta)); this.wrapped = this.wrap(); this.visible = true; @@ -548,6 +547,8 @@ $(function() { this.wrapped.append(link); } + handleRequest(this.requestData(value, meta)); + function validate() { request.done(function(value) { self.validate(value); -- cgit v1.2.3