Skip to content

Commit

Permalink
fix the context and offset (but not test since without a valid local …
Browse files Browse the repository at this point in the history
…API test env)
  • Loading branch information
LIANG GOU committed Aug 17, 2015
1 parent 5b47fd7 commit 2512524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ var mainViz = d3.select(vizId)
//class to make it responsive
.classed('svg-content-responsive', true);

var CURRENT_TEXT = null; // current analyzed text

// startup
$(document).ready(function() {
var $text = $('#textArea'),
Expand All @@ -66,6 +64,7 @@ $(document).ready(function() {
$errorMsg = $('.errorMsg'),
$visualization = $(vizId);

var CURRENT_TEXT = null; // current analyzed text
var CURRENT_TONE = null; // current results
var REPLACEABLE = null;

Expand Down Expand Up @@ -142,6 +141,7 @@ $(document).ready(function() {
}
$results.show();

CURRENT_TEXT = analyzedText;
// normalize text
var analyzedHtmlText = analyzedText.replace(/\r\n/g, '<br />').replace(/[\r\n]/g, '<br />');

Expand Down

0 comments on commit 2512524

Please sign in to comment.