Skip to content
Snippets Groups Projects
Commit 6483f959 authored by jkerdreu's avatar jkerdreu
Browse files

Fix a refresh bug

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1809 b32b6428-25c9-4566-ad07-03861ab6144f
parent 222cf6b9
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,6 @@ function detectMobile() {
}
//================ UI stuffs ====================================================
function updateStatusCnt() {
_('#socket-status').innerText = "+cnt " + msg_cnt + ' ('+sio.io.engine.transport.name+')';
......@@ -66,7 +64,7 @@ function EventBus () {
this.on('visible',function() {
console.log('Event : visible');
_('#messages').innerText = 'visible ==' + Math.random();
this.query_attributes();
this.refresh_attributes();
});
this.refresh_attributes = function() {
......@@ -78,7 +76,6 @@ function EventBus () {
}
};
function visibilityChanged(data) {
if (document.visibilityState == 'visible')
evt_bus.trigger('visible');
......@@ -140,8 +137,6 @@ function sio_query_attributes(addr) {
sio.emit('query_attributes',addr);
}
//================ Main =========================================================
riot.compile(function() {
tags = riot.mount('*');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment