471a6435 by Adam Heath

Handle url being a method correctly.

1 parent 3da2cabc
......@@ -11,7 +11,7 @@ define(function(require) {
initialize: function(data, options) {
this.url = function() {
var url = options.search.url;
return _.isFunction(url) ? url.call() : url;
return _.isFunction(url) ? url.call(options.search) : url;
};
_.each(this.keys(), _.bind(function(facetName) {
var facet = this.get(facetName);
......