Skip to content

Commit

Permalink
trim title content
Browse files Browse the repository at this point in the history
  • Loading branch information
jaz303 committed Apr 27, 2010
1 parent 53570e4 commit 460b2b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/javascripts/jquery.tipsy.js
Expand Up @@ -72,8 +72,7 @@
} else if (typeof o.title == 'function') {
title = o.title.call($e[0]);
}
title = '' + title;
// TODO: trim
title = ('' + title).replace(/(^\s*|\s*$)/, "");
return title || o.fallback;
},

Expand Down

0 comments on commit 460b2b2

Please sign in to comment.