modules/callbacks.js
function ParseReply(mesgId, data, sid) {
    var i;

    for(i = 0 ; i < callbackList.length ; i++) {
        if(callbackList[i].id.toString() === mesgId.toString() ) {
            callbackList[i].func(data, sid);
        }
    }
}
function ParseReply(mesgId, data, sid) {
    var i;

    for(i = 0 ; i < callbackList.length ; i++) {
        if(callbackList[i].id.toString() === mesgId.toString() ) {
            callbackList[i].func(data, sid);
        }
    }
}
function ParseReply ( mesgId , data , sid ) { var i ; for ( i = 0 ; i < callbackList . length ; i ++ ) { if ( callbackList [ i ] . id . toString ( ) === mesgId . toString ( ) ) { callbackList [ i ] . func ( data , sid ) ; } } }
Calls all the saved callbacks for a specific message ID
@param string mesgId
@param object data
Calls all the saved callbacks for a specific message ID