Skip to content

Commit

Permalink
Make last trim IE8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstuck committed Jan 4, 2015
1 parent 7bf2d36 commit 0602083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ $(function() {
// The paste event is actually pre-paste, so use a quick timeout hack
setTimeout(function() {
var format;
if ($el.val().trim().substring(0, 1) === '<') {
if ($.trim($el.val()).substring(0, 1) === '<') {
format = 'xml';
} else {
if ($el.val().indexOf('=') !== -1) {
Expand Down

0 comments on commit 0602083

Please sign in to comment.