Handle url being a method correctly.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -11,7 +11,7 @@ define(function(require) { | ... | @@ -11,7 +11,7 @@ define(function(require) { |
11 | initialize: function(data, options) { | 11 | initialize: function(data, options) { |
12 | this.url = function() { | 12 | this.url = function() { |
13 | var url = options.search.url; | 13 | var url = options.search.url; |
14 | return _.isFunction(url) ? url.call() : url; | 14 | return _.isFunction(url) ? url.call(options.search) : url; |
15 | }; | 15 | }; |
16 | _.each(this.keys(), _.bind(function(facetName) { | 16 | _.each(this.keys(), _.bind(function(facetName) { |
17 | var facet = this.get(facetName); | 17 | var facet = this.get(facetName); | ... | ... |
-
Please register or sign in to post a comment