471a6435 by Adam Heath

Handle url being a method correctly.

1 parent 3da2cabc
...@@ -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);
......