Fix whitespace in code.

(imported from commit 4bb750f886ccffc22d54140c10d39f0f91725156)
This commit is contained in:
Steve Howell
2013-05-31 13:59:24 -04:00
parent cd13488959
commit e558b5bf23
3 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ exports.highlight_query_in_phrase = function (query, phrase) {
query = query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&');
var regex = new RegExp('(^' + query + ')', 'ig');
var result = "";
var result = "";
var parts = phrase.split(' ');
for (i = 0; i < parts.length; i++) {
if (i > 0) result += " ";

View File

@@ -55,7 +55,7 @@ exports.message_viewport_info = function () {
res.visible_height =
element_just_below_us.offset().top
- res.visible_top;
return res;
};

View File

@@ -78,7 +78,7 @@ exports.stop_auto_scrolling = function() {
exports.system_initiated_animate_scroll = function (scroll_amount) {
suppress_scroll_pointer_update = true; // Gets set to false in the scroll handler.
var viewport_offset = exports.scrollTop();
in_stoppable_autoscroll = true;
in_stoppable_autoscroll = true;
$("html, body").animate({
scrollTop: viewport_offset + scroll_amount,
always: function () {