Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Change escape sequence to unicode instead of octal. Fixes #204

  • Loading branch information...
commit 203b00c179af2a3b48392618e90c78938342979f 1 parent 6dbe4ac
Marcin Raczkowski authored April 15, 2012
6  vendor/assets/javascripts/mercury/regions/editable.js.coffee
@@ -509,14 +509,14 @@ class Mercury.Regions.Editable.Selection
509 509
 
510 510
     if @range
511 511
       if @commonAncestor(true).closest('.mercury-snippet').length
512  
-        lastChild = @context.createTextNode('\00')
  512
+        lastChild = @context.createTextNode("\x00")
513 513
         element.appendChild(lastChild)
514 514
     else
515 515
       if element.lastChild && element.lastChild.nodeType == 3 && element.lastChild.textContent.replace(/^[\s+|\n+]|[\s+|\n+]$/, '') == ''
516 516
         lastChild = element.lastChild
517  
-        element.lastChild.textContent = '\00'
  517
+        element.lastChild.textContent = "\x00"
518 518
       else
519  
-        lastChild = @context.createTextNode('\00')
  519
+        lastChild = @context.createTextNode("\x00")
520 520
         element.appendChild(lastChild)
521 521
 
522 522
     if lastChild

0 notes on commit 203b00c

Please sign in to comment.
Something went wrong with that request. Please try again.