"use strict";

annotationApp.service('morphRetriever', function($http) {
  this.getData = function(callback) {
    var result;
    var request = $.ajax({
      url: './static/analyses.json',
      async: false
    });

    request.done(callback);
  };

  var stubData;
  this.getStubData(function(res) {
    stubData = res;
  });

  this.getData = function(string, callback) {
    var result = stubData[string] || [];
    callback(result);
  };
});

"use strict";

annotationApp.service('morphRetriever', function($http) {
  this.getStubData = function(callback) {
    var result;
    var request = $.ajax({
      url: './static/analyses.json',
      async: false
    });

    request.done(callback);
  };

  var stubData;
  this.getStubData(function(res) {
    stubData = res;
  });

  this.getData = function(string, callback) {
    var result = stubData[string] || [];
    callback(result);
  };
});

Fix error in recent rebase
Fix error in recent rebase
