mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fixing the bind statement to use lodash since PhantomJS doesn't seem to have one?
This commit is contained in:
parent
cdb617a229
commit
e314fdeb90
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
define(function (require) {
|
||||
var _ = require('lodash');
|
||||
var flattenSearchResponse = require('components/index_patterns/_flatten_search_response');
|
||||
describe('IndexPattern#flattenSearchResponse()', function () {
|
||||
|
||||
|
@ -13,7 +14,7 @@ define(function (require) {
|
|||
}
|
||||
};
|
||||
|
||||
indexPattern.flattenSearchResponse = flattenSearchResponse.bind(indexPattern);
|
||||
indexPattern.flattenSearchResponse = _.bind(flattenSearchResponse, indexPattern);
|
||||
|
||||
var fixture = {
|
||||
message: 'Hello World',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue