Module: common/services

This module is responsible for general application service calls

Source:

Methods


init()

Initializes class

Source:
Fires:
  • event:assignListeners()

assignListeners()

Assigns listeners to events used in this class.

Source:
Listens to Events:
  • event:EVENT_TEST_MODE_STATE_CHANGE
  • event:EVENT_ADMIN_GOT_MANIFEST

getReturnObj()

Returns generic return object

Source:
Returns:
Type
Object
Example
{
   "status": "ok",
   "data": -1
}

sendAnalytics(formData)

Sends an analytic data using JSON services node configuration

Parameters:
Name Type Description
formData Object

Analytic form data

Source:

loadProjectJson(filename, callback)

Loads the project json that overrides the core-config.json

Parameters:
Name Type Description
filename String

File name

callback function

Callback function

Source:
Returns:
Type
callback(JSON)

onGotManifest(data)

Stores received manifest data

Parameters:
Name Type Description
data Object

Manifest data

Source: