Code coverage report for api/app/PsycholinguisticsApp.js

Statements: 36.36% (4 / 11)      Branches: 0% (0 / 7)      Functions: 0% (0 / 2)      Lines: 36.36% (4 / 11)      Ignored: none     

All files » api/app/ » PsycholinguisticsApp.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 351                   1               1                             1  
var App = require("./App").App;
 
/**
 * @class The PsycholinguisticsApp is a minimal extension of the App with the preferences
 *  set to default to a psycholinguistics terminology and look and feel.
 *
 * @name  PsycholinguisticsApp
 * @extends App
 * @constructs
 */
var PsycholinguisticsApp = function PsycholinguisticsApp(options) {
  if (!this._fieldDBtype) {
    this._fieldDBtype = "PsycholinguisticsApp";
  }
  this.debug("Constructing PsycholinguisticsApp ", options);
  App.apply(this, arguments);
};
 
PsycholinguisticsApp.prototype = Object.create(App.prototype, /** @lends PsycholinguisticsApp.prototype */ {
  constructor: {
    value: PsycholinguisticsApp
  },
 
  hasParticipants: {
    get: function() {
      if (!this.participantsList || !this.participantsList.docs || !this.participantsList.docs.length) {
        return false;
      }
      return this.participantsList.docs.length > 0;
    }
  }
 
});
exports.PsycholinguisticsApp = PsycholinguisticsApp;