synced web2py.js, thanks Jeremy

This commit is contained in:
mdipierro
2012-09-24 20:18:30 -05:00
parent 0f322f8a69
commit 30727ef9e4
5 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ function web2py_component(action, target, timeout, times){
web2py_ajax_page('get', action, null, target);
} }); }
function web2py_comet(url,onmessage,onopen,onclose) {
function web2py_websocket(url,onmessage,onopen,onclose) {
if ("WebSocket" in window) {
var ws = new WebSocket(url);
ws.onopen = onopen?onopen:(function(){});