Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #227 from mobify/v1.1-ff-combo-fix
Browse files Browse the repository at this point in the history
Fix issue where document.writing out the combo code fails in firefox
  • Loading branch information
Ryan Daw committed Jan 9, 2014
2 parents e309ccf + 7ce8a00 commit 6505232
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/combo.js
Expand Up @@ -355,7 +355,10 @@ var $ = Mobify.$
}
}

Mobify.combo._docWrite.call(document, '<script ' + out + '<\/script>');
// Uglify will strip out the escape here, so we need to split up
// '<' and '/' to prevent browsers (Firefox in this case)
// from barfing when attempting to document.write this out.
Mobify.combo._docWrite.call(document, '<script ' + out + '<' + '/script>');
}

/**
Expand Down Expand Up @@ -410,4 +413,4 @@ Mobify.cssURL = function(obj) {
return '//jazzcat.mobify.com/css/' + JSONURIencode(obj)
}

})(this, document, Mobify);
})(this, document, Mobify);

0 comments on commit 6505232

Please sign in to comment.