       # If no valid active session present just add to request queue, if allowed
       isOnline = true
       if SFHybridApp? and !SFHybridApp.deviceIsOnline()
-        LoggrUtil.logConnectionError jqXHR
+        LoggrUtil.logConnectionError()
         callback jqXHR, null
       else if !SFDC.sessionAlive and SFDC.allowRequestQueueing
         LoggrUtil.log "Session inactive. Adding the request to the queue!"

  # `accountId` Filter opportunities by account  
  # `callback` Callback function (err, data)
  @opportunities: (accountId, callback) ->
    soql = "SELECT Id, Name
            FROM Opportunity
            WHERE IsClosed=false AND AccountId='#{accountId}' ORDER BY LastActivityDate"

  # `accountIds` Array of account IDs  
  # `callback` Callback function (err, result)
  @getAccountNames: (accountIds, callback) ->
    LoggrUtil.log "getAccountNames"
    soql = SFDC.getAccountNameQuery accountIds
    SFDC.query soql, callback

