Permalink
Browse files

RuntimeClient: Remove extra runtime.destroy() call - runtimes destroy…

… themselves internally.
  • Loading branch information...
1 parent 41544cc commit 011be349dbec4d0cfa7ad65d80194b0504f01c72 @jayarjo jayarjo committed Mar 22, 2013
Showing with 4 additions and 10 deletions.
  1. +1 −4 bin/js/moxie.js
  2. +2 −2 bin/js/moxie.min.js
  3. +1 −4 src/javascript/runtime/RuntimeClient.js
View
@@ -1919,10 +1919,7 @@ define('moxie/runtime/RuntimeClient', [
runtime.init();
return;
} catch(err) {
- // destroy failed runtime's remnants and proceed to the next one
- if (runtime) {
- runtime.destroy();
- }
+ runtime = null;
}
}
View
@@ -95,10 +95,7 @@ define('moxie/runtime/RuntimeClient', [
runtime.init();
return;
} catch(err) {
- // destroy failed runtime's remnants and proceed to the next one
- if (runtime) {
- runtime.destroy();
- }
+ runtime = null;
}
}

0 comments on commit 011be34

Please sign in to comment.