liquid_feedback_frontend

diff static/js/jsprotect.js @ 945:b865f87ea810

Work on robustification of JavaScript voting
author jbe
date Thu Nov 08 13:17:37 2012 +0100 (2012-11-08)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/static/js/jsprotect.js	Thu Nov 08 13:17:37 2012 +0100
     1.3 @@ -0,0 +1,7 @@
     1.4 +function jsProtect(f) {
     1.5 +  if (!jsFail) try {
     1.6 +    return f();
     1.7 +  } catch (e) {
     1.8 +    jsFail = true;
     1.9 +  }
    1.10 +}

Impressum / About Us