aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/widgets.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widgets.js b/src/widgets.js
index 2b44fccc..6d5ffe65 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -1072,10 +1072,11 @@ angularWidget('ng:view', function(element) {
}
if (src) {
- $xhr('GET', src, null, function(code, response){
+ //xhr's callback must be async, see commit history for more info
+ $xhr('GET', src, function(code, response){
element.html(response);
compiler.compile(element)(childScope);
- }, false, true);
+ });
} else {
element.html('');
}