Permalink
Browse files

bugfix on persistable.url

  • Loading branch information...
1 parent ea6c52c commit ca2211c67eb14c3bf05fcada84c83f10a52833b0 @robrobbins robrobbins committed Aug 9, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 extras/extensions/persistable.js
@@ -131,6 +131,7 @@ sudo.extensions.persistable = {
//
// `param` {string} `base` the baseUrl set in this models ajax options
url: function url(base) {
+ if(!base) return void 0;
// could possibly be 0...
if('id' in this.data) {
return base + (base.charAt(base.length - 1) === '/' ?

0 comments on commit ca2211c

Please sign in to comment.