rbrindley: branch 2.0 r4533 - /branches/2.0/config/js/welcome.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Fri Feb 27 11:54:21 CST 2009


Author: rbrindley
Date: Fri Feb 27 11:54:18 2009
New Revision: 4533

URL: http://svn.digium.com/svn-view/asterisk-gui?view=rev&rev=4533
Log:

- added a comment explaining the decision to call parseEvent() inside only the cases the need it instead of globally before the switch case


Modified:
    branches/2.0/config/js/welcome.js

Modified: branches/2.0/config/js/welcome.js
URL: http://svn.digium.com/svn-view/asterisk-gui/branches/2.0/config/js/welcome.js?view=diff&rev=4533&r1=4532&r2=4533
==============================================================================
--- branches/2.0/config/js/welcome.js (original)
+++ branches/2.0/config/js/welcome.js Fri Feb 27 11:54:18 2009
@@ -581,8 +581,11 @@
 		} else if (event.length == 0) {
 			continue;
 		}
+		/* this is used for manager_events.parseEvent() which was
+		 * decided to only be called in the cases that needed to
+		 * have the event parsed. This is for efficiency reasons.
+		 */
 		var event_lines = event.split('\r\n');
-
 
 		switch (event_lines[0].trim()) {
 		case 'event: agentcallbacklogin':




More information about the asterisk-gui-commits mailing list