Skip to content

Commit

Permalink
Merge pull request #479 from BigBlueHat/two-oh-tweaks
Browse files Browse the repository at this point in the history
Fix drawAll in Highlighter plugin
  • Loading branch information
tilgovi committed Jan 19, 2015
2 parents 6e9873d + e7ad236 commit ee419e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ HTTPStorageImpl.prototype.query = function (queryObj) {
this._apiRequest('search', queryObj)
.done(function (obj) {
var rows = obj.rows;
delete obj.row;
delete obj.rows;
dfd.resolve({results: rows, metadata: obj});
})
.fail(function () {
Expand Down Expand Up @@ -485,8 +485,8 @@ StorageAdapter.prototype.query = function (query) {
StorageAdapter.prototype.load = function (query) {
var self = this;
return this.query(query)
.then(function (result) {
self.runHook('onAnnotationsLoaded', [result]);
.then(function (data) {
self.runHook('onAnnotationsLoaded', [data.results]);
});
};

Expand Down

0 comments on commit ee419e8

Please sign in to comment.