MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / fixOperaBug

Function fixOperaBug

static/scripts/markitup/jquery.markitup.js:344–349  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

342
343 // Substract linefeed in Opera
344 function fixOperaBug(string) {
345 if ($.browser.opera) {
346 return string.length - string.replace(/\n*/g, '').length;
347 }
348 return 0;
349 }
350 // Substract linefeed in IE
351 function fixIeBug(string) {
352 if ($.browser.msie) {

Callers 1

markupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected