Skip to content

Commit

Permalink
Merge pull request #7 from adamnengland/master
Browse files Browse the repository at this point in the history
Fixing _result to use the underscore method
  • Loading branch information
fiznool committed Jul 23, 2013
2 parents 64cc55c + 99c8776 commit e571971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.basicauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
*/
Backbone.sync = function (method, model, options) {
// Handle both string and function urls
var remoteURL = _result(model, 'url');
var remoteURL = _.result(model, 'url');

// Retrieve the auth credentials from the model url
var credentials = remoteURL.match(/\/\/(.*):(.*)@/),
Expand Down

0 comments on commit e571971

Please sign in to comment.