Skip to content

Commit

Permalink
Fix for incorrect traversal of user entry history after sending a mes…
Browse files Browse the repository at this point in the history
…sage containing a URL.
  • Loading branch information
spoulson committed Feb 28, 2013
1 parent cbef494 commit 70cb9a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/chatmorePresentation.fullpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@
var modified = false;

// Use regex to isolate URL patterns, replace with hyperlink elements.
if (window.console) console.log('node text: ' + $node.text());
var html = layout.htmlEncode($node.text()).replace(linkifyRegex, function (m, url) {
modified = true;

Expand All @@ -374,7 +373,6 @@
});

if (modified) {
if (window.console) console.log('node html linkified: ' + html);
var $prevSibling = $node.prev();
var $parent = $node.parent();
var $newNode = $('<span>' + html + '</span>');
Expand Down Expand Up @@ -1027,7 +1025,7 @@
$userEntry.val('');

// Reset user entry history index.
self.userEntryHistoryIndex = undefined;
userEntryHistoryIndex = undefined;

// Clear any autocomplete suggestions.
if (autoReplyIndex !== undefined)
Expand Down

0 comments on commit 70cb9a2

Please sign in to comment.