Module: nagvis
Branch: master
Commit: d0820a3d3ef521fabe683825e83fb1b747f5ba20
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=d0820a3d3ef521fabe683825e83fb1b747f5ba20

Author: Lars Michelsen <[email protected]>
Date:   Fri Oct  9 23:43:39 2009 +0200

#127 Fxed parallel eventhandling, works now as expected

---

 share/frontend/nagvis-js/js/frontend.js |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/share/frontend/nagvis-js/js/frontend.js 
b/share/frontend/nagvis-js/js/frontend.js
index a590a65..161ae90 100755
--- a/share/frontend/nagvis-js/js/frontend.js
+++ b/share/frontend/nagvis-js/js/frontend.js
@@ -119,7 +119,7 @@ function searchObjects(sMatch) {
                        // Detach the handler
                        //  Had problems with this. Could not give the index to 
function:
                        //  function() { flashIcon(iIndex, 10); iIndex = null; }
-                       window.setTimeout('flashIcon('+intIndex+', 
'+oPageProperties.event_highlight_duration+', 
'+oPageProperties.event_highlight_interval+')', 0);
+                       setTimeout('flashIcon('+intIndex+', 
'+oPageProperties.event_highlight_duration+', 
'+oPageProperties.event_highlight_interval+')', 0);
                } else {
                        // FIXME: Atm only flash icons, not lines or gadgets
                }
@@ -127,7 +127,7 @@ function searchObjects(sMatch) {
                // - Scroll to object
                if(len = 1) {
                        // Detach the handler
-                       
window.setTimeout('scrollSlow('+aMapObjects[intIndex].conf.x+', 
'+aMapObjects[intIndex].conf.y+', 15)', 0);
+                       
setTimeout('scrollSlow('+aMapObjects[intIndex].conf.x+', 
'+aMapObjects[intIndex].conf.y+', 15)', 0);
                }
                
                intIndex = null;
@@ -616,7 +616,7 @@ function updateObjects(aMapObjectInformations, aObjs, 
sType) {
                                        // Detach the handler
                                        //  Had problems with this. Could not 
give the index to function:
                                        //  function() { flashIcon(iIndex, 10); 
iIndex = null; }
-                                       
window.setTimeout('flashIcon('+intIndex+', 
'+oPageProperties.event_highlight_duration+', 
'+oPageProperties.event_highlight_interval+')', 0);
+                                       setTimeout('flashIcon('+intIndex+', 
'+oPageProperties.event_highlight_duration+', 
'+oPageProperties.event_highlight_interval+')', 0);
                                } else {
                                        // FIXME: Atm only flash icons, not 
lines or gadgets
                                }
@@ -625,7 +625,7 @@ function updateObjects(aMapObjectInformations, aObjs, 
sType) {
                        // - Scroll to object
                        if(oPageProperties.event_scroll === '1') {
                                // Detach the handler
-                               window.setTimeout(function() { 
scrollSlow(aObjs[intIndex].conf.x, aObjs[intIndex].conf.y, 15); }, 0);
+                               setTimeout(function() { 
scrollSlow(aObjs[intIndex].conf.x, aObjs[intIndex].conf.y, 15); }, 0);
                        }
                        
                        // - Eventlog
@@ -638,7 +638,7 @@ function updateObjects(aMapObjectInformations, aObjs, 
sType) {
                        // - Sound
                        if(oPageProperties.event_sound === '1') {
                                // Detach the handler
-                               window.setTimeout('playSound('+intIndex+', 1)', 
0);
+                               setTimeout('playSound('+intIndex+', 1)', 0);
                        }
                }
 
@@ -873,7 +873,7 @@ function playSound(intIndex, iNumTimes){
                iNumTimes = iNumTimes - 1;
                
                if(iNumTimes > 0) {
-                       window.setTimeout(function() { playSound(intIndex, 
iNumTimes); }, 500);
+                       setTimeout(function() { playSound(intIndex, iNumTimes); 
}, 500);
                }
        }
        
@@ -920,7 +920,7 @@ function flashIcon(intIndex, iDuration, iInterval){
        
        // Flash again until timer counted down and the border is hidden
        if(iDurationNew > 0 || (iDurationNew <= 0 && 
aMapObjects[intIndex].bIsFlashing === true)) {
-               window.setTimeout(function() { flashIcon(intIndex, 
iDurationNew, iInterval); }, iInterval);
+               setTimeout(function() { flashIcon(intIndex, iDurationNew, 
iInterval); }, iInterval);
        }
        
        oObjIcon = null;


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to