root 1 anno fa
parent
commit
e53f948637
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      js/Office/Poll.js

+ 1 - 1
js/Office/Poll.js

@@ -47,7 +47,7 @@ U.MD.O.P.polling = function (params) {
                 var istrue = true;
                 while (start < text.length && istrue) {
                     end = text.indexOf(delimiter, start);//获取数据的是否已经结束
-                    if (end) {
+                    if (end > -1) {
                         data += text.substring(start, end);
                         start = end + delimiter.length;
                         try {