PsycholinguisticsApp

PsycholinguisticsApp

The PsycholinguisticsApp is a minimal extension of the App with the preferences set to default to a psycholinguistics terminology and look and feel.

Constructor

new PsycholinguisticsApp()

Source:

Extends

Members

addActivity

Source:
Inherited From:
Saves a json file via REST to a couchdb, must be online.

isOnlineOnly

Source:
Inherited From:
If not running offline on an android or in a chrome extension, assume we are online.

processRouteParams

Source:
Inherited From:
This function creates the backbone objects, and links them up so that they are ready to be used in the views. This function should be called on app load, either by main, or by welcome new user. This function should not be called at any later time as it will break the connection between the views and the models. To load different models into the app after it has first loaded, use the loadFieldDBObjectsById function below.

save

Source:
Inherited From:
This function saves the dashboard session, datalist and then corpus. Its success callback is called if all saves succeed, its fail is called if any fail.

warnUserAboutSavedSyncedStateBeforeUserLeaves

Source:
Inherited From:
This function is used to save the entire app state that is needed to load when the app is re-opened. http://stackoverflow.com/questions/7794301/window-onunload-is-not-working-properly-in-chrome-browser-can-any-one-help-me $(window).on("beforeunload", function() { return "Your own message goes here..."; });