Revert "[third] Upgrade jquery to version 1.8.3."

This reverts commit be93b6ea28.

Unfortunately, the newer jquery comes with a huge performance
regression affecting the hotkeys code, which has the effect of making
typing super slow.

Fixes: #1449.
This commit is contained in:
Tim Abbott
2016-07-28 11:30:21 -07:00
parent 713797a65c
commit beedfb2939
8 changed files with 3671 additions and 3739 deletions

View File

@@ -23,7 +23,7 @@ i18n.init({
} }
}); });
global.$ = require('jquery'); global.$ = require('jQuery');
var _ = global._; var _ = global._;
// When writing these tests, the following command might be helpful: // When writing these tests, the following command might be helpful:

View File

@@ -2,7 +2,7 @@ var _ = require('third/underscore/underscore.js');
var MessageListView = require('js/message_list_view.js'); var MessageListView = require('js/message_list_view.js');
add_dependencies({ add_dependencies({
$: 'jquery', $: 'jQuery',
XDate: 'third/xdate/xdate.dev.js', XDate: 'third/xdate/xdate.dev.js',
util: 'js/util.js' util: 'js/util.js'
}); });

View File

@@ -25,7 +25,7 @@ compose_fade.update_faded_users = function () {
return; return;
}; };
global.$ = require('jquery'); global.$ = require('jQuery');
$.fn.expectOne = function () { $.fn.expectOne = function () {
assert(this.length === 1); assert(this.length === 1);
return this; return this;

View File

@@ -20,7 +20,7 @@ set_global('message_store', {
var stream_list = require('js/stream_list.js'); var stream_list = require('js/stream_list.js');
global.$ = require('jquery'); global.$ = require('jQuery');
$.fn.expectOne = function () { $.fn.expectOne = function () {
assert(this.length === 1); assert(this.length === 1);
return this; return this;

View File

@@ -15,7 +15,7 @@ i18n.init({
lng: 'en' lng: 'en'
}); });
global.$ = require('jquery'); global.$ = require('jQuery');
var _ = global._; var _ = global._;
// When writing these tests, the following command might be helpful: // When writing these tests, the following command might be helpful:

View File

@@ -8,7 +8,7 @@
"devDependencies": { "devDependencies": {
"handlebars": "1.3.0", "handlebars": "1.3.0",
"istanbul": "0.4.0", "istanbul": "0.4.0",
"jquery": "1.8.3", "jQuery": "1.7.4",
"jsdom": "0.5.7", "jsdom": "0.5.7",
"xmlhttprequest": "1.5.0", "xmlhttprequest": "1.5.0",
"nwmatcher": "1.3.6", "nwmatcher": "1.3.6",

File diff suppressed because it is too large Load Diff

View File

@@ -642,7 +642,7 @@ PIPELINE = {
JS_SPECS = { JS_SPECS = {
'common': { 'common': {
'source_filenames': ( 'source_filenames': (
'third/jquery/jquery-1.8.3.js', 'third/jquery/jquery-1.7.2.js',
'third/underscore/underscore.js', 'third/underscore/underscore.js',
'js/blueslip.js', 'js/blueslip.js',
'third/bootstrap/js/bootstrap.js', 'third/bootstrap/js/bootstrap.js',