Merge lp:~cjwatson/launchpad/eslint-remove-unused-vars into lp:launchpad

Proposed by Colin Watson
Status: Merged
Merged at revision: 18431
Proposed branch: lp:~cjwatson/launchpad/eslint-remove-unused-vars
Merge into: lp:launchpad
Prerequisite: lp:~cjwatson/launchpad/eslint-remove-dead-code
Diff against target: 438 lines (+44/-60)
21 files modified
lib/lp/app/javascript/anim/tests/test_anim.js (+1/-2)
lib/lp/app/javascript/gallery-accordion/gallery-accordion.js (+2/-2)
lib/lp/app/javascript/picker/tests/test_picker_patcher.js (+1/-1)
lib/lp/app/javascript/subscribers/tests/test_subscribers_list.js (+11/-17)
lib/lp/app/javascript/tests/test_expander.js (+2/-2)
lib/lp/app/javascript/tests/test_foldables.js (+1/-1)
lib/lp/app/javascript/tests/test_longpoll.js (+1/-1)
lib/lp/bugs/javascript/bugtask_index.js (+8/-8)
lib/lp/bugs/javascript/duplicates.js (+1/-2)
lib/lp/bugs/javascript/filebug.js (+1/-5)
lib/lp/bugs/javascript/tests/test_bug_notification_level.js (+1/-1)
lib/lp/bugs/javascript/tests/test_filebug.js (+1/-1)
lib/lp/bugs/javascript/tests/test_pre_search.js (+2/-3)
lib/lp/bugs/javascript/tests/test_subscription.js (+2/-4)
lib/lp/registry/javascript/distroseries/widgets.js (+1/-1)
lib/lp/registry/javascript/distroseriesdifferences_details.js (+3/-3)
lib/lp/registry/javascript/structural-subscription.js (+1/-1)
lib/lp/registry/javascript/tests/test_distroseriesdifferences_details.js (+1/-1)
lib/lp/registry/javascript/tests/test_team_mailinglists.js (+1/-2)
lib/lp/soyuz/javascript/base.js (+1/-1)
lib/lp/testing/tests/test_yuixhr_fixture.js (+1/-1)
To merge this branch: bzr merge lp:~cjwatson/launchpad/eslint-remove-unused-vars
Reviewer Review Type Date Requested Status
William Grant Approve
Review via email: mp+327894@code.launchpad.net

Commit message

Remove lots of unused variable assignments spotted by ESLint.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/app/javascript/anim/tests/test_anim.js'
--- lib/lp/app/javascript/anim/tests/test_anim.js 2013-03-20 03:41:40 +0000
+++ lib/lp/app/javascript/anim/tests/test_anim.js 2017-07-21 17:11:32 +0000
@@ -52,8 +52,7 @@
52 test_resolveNodeListFrom_anythine_else: function() {52 test_resolveNodeListFrom_anythine_else: function() {
53 var succeed = true;53 var succeed = true;
54 try {54 try {
55 var nodelist = tests.resolveNodeListFrom(55 tests.resolveNodeListFrom({crazy: true, broken: 'definitely'});
56 {crazy: true, broken: 'definitely'});
57 } catch(e) {56 } catch(e) {
58 succeed = false;57 succeed = false;
59 }58 }
6059
=== modified file 'lib/lp/app/javascript/gallery-accordion/gallery-accordion.js'
--- lib/lp/app/javascript/gallery-accordion/gallery-accordion.js 2011-03-15 13:29:18 +0000
+++ lib/lp/app/javascript/gallery-accordion/gallery-accordion.js 2017-07-21 17:11:32 +0000
@@ -904,7 +904,7 @@
904 * @param item {Y.AccordionItem} An <code>Y.AccordionItem</code> instance to be set as draggable904 * @param item {Y.AccordionItem} An <code>Y.AccordionItem</code> instance to be set as draggable
905 */905 */
906 _initItemDragDrop: function( item ){906 _initItemDragDrop: function( item ){
907 var itemHeader, dd, bb, itemBB, ddrop;907 var itemHeader, dd, bb, itemBB;
908908
909 itemHeader = item.getStdModNode( WidgetStdMod.HEADER );909 itemHeader = item.getStdModNode( WidgetStdMod.HEADER );
910910
@@ -924,7 +924,7 @@
924 constrain2node: bb924 constrain2node: bb
925 });925 });
926926
927 ddrop = new Y.DD.Drop({927 new Y.DD.Drop({
928 node: itemBB,928 node: itemBB,
929 groups: [ DRAGGROUP ]929 groups: [ DRAGGROUP ]
930 });930 });
931931
=== modified file 'lib/lp/app/javascript/picker/tests/test_picker_patcher.js'
--- lib/lp/app/javascript/picker/tests/test_picker_patcher.js 2016-09-12 19:41:46 +0000
+++ lib/lp/app/javascript/picker/tests/test_picker_patcher.js 2017-07-21 17:11:32 +0000
@@ -352,7 +352,7 @@
352 // to copy the selected value to the text input field.352 // to copy the selected value to the text input field.
353 this.text_input = Y.Node.create(353 this.text_input = Y.Node.create(
354 '<input id="field.testfield" value="foo" />');354 '<input id="field.testfield" value="foo" />');
355 var node = Y.one(document.body).appendChild(this.text_input);355 Y.one(document.body).appendChild(this.text_input);
356 this.select_menu = Y.Node.create(356 this.select_menu = Y.Node.create(
357 '<select id="field.testfield-suggestions"> ' +357 '<select id="field.testfield-suggestions"> ' +
358 ' <option value="">Did you mean...</option>' +358 ' <option value="">Did you mean...</option>' +
359359
=== modified file 'lib/lp/app/javascript/subscribers/tests/test_subscribers_list.js'
--- lib/lp/app/javascript/subscribers/tests/test_subscribers_list.js 2017-07-21 17:11:31 +0000
+++ lib/lp/app/javascript/subscribers/tests/test_subscribers_list.js 2017-07-21 17:11:32 +0000
@@ -110,7 +110,7 @@
110 test_no_container_error: function() {110 test_no_container_error: function() {
111 // When there is no matching container node in the DOM tree,111 // When there is no matching container node in the DOM tree,
112 // an exception is thrown.112 // an exception is thrown.
113 var sl = new module.SubscribersList({113 new module.SubscribersList({
114 container_box: '#not-found',114 container_box: '#not-found',
115 subscriber_levels: []});115 subscriber_levels: []});
116 },116 },
@@ -133,7 +133,7 @@
133 Y.Node.create('<div />').addClass('container'));133 Y.Node.create('<div />').addClass('container'));
134 this.root.appendChild(134 this.root.appendChild(
135 Y.Node.create('<div />').addClass('container'));135 Y.Node.create('<div />').addClass('container'));
136 var sl = new module.SubscribersList({136 new module.SubscribersList({
137 container_box: '.container',137 container_box: '.container',
138 subscriber_levels: []});138 subscriber_levels: []});
139 },139 },
@@ -761,7 +761,7 @@
761 test_removeSectionNodeIfEmpty_keeps_others: function() {761 test_removeSectionNodeIfEmpty_keeps_others: function() {
762 // With two empty sections, only the requested one is removed.762 // With two empty sections, only the requested one is removed.
763 var subscribers_list = setUpSubscribersList(this.root);763 var subscribers_list = setUpSubscribersList(this.root);
764 var section_node1 = subscribers_list._getOrCreateSection('Level3');764 subscribers_list._getOrCreateSection('Level3');
765 var section_node2 = subscribers_list._getOrCreateSection(765 var section_node2 = subscribers_list._getOrCreateSection(
766 'Level1');766 'Level1');
767767
@@ -1187,8 +1187,7 @@
1187 // fails with an exception.1187 // fails with an exception.
1188 var subscribers_list = setUpSubscribersList(this.root);1188 var subscribers_list = setUpSubscribersList(this.root);
1189 var subscriber = { name: 'user' };1189 var subscriber = { name: 'user' };
1190 var subscriber_node = subscribers_list.addSubscriber(1190 subscribers_list.addSubscriber(subscriber, 'Level1');
1191 subscriber, 'Level1');
1192 subscribers_list.addUnsubscribeAction(subscriber, "not-function");1191 subscribers_list.addUnsubscribeAction(subscriber, "not-function");
1193 },1192 },
11941193
@@ -1224,9 +1223,7 @@
1224 // Removing a subscriber works when the subscriber is in the list.1223 // Removing a subscriber works when the subscriber is in the list.
1225 var subscribers_list = setUpSubscribersList(this.root);1224 var subscribers_list = setUpSubscribersList(this.root);
1226 var subscriber = { name: 'user' };1225 var subscriber = { name: 'user' };
1227 var subscriber_node = subscribers_list.addSubscriber(1226 subscribers_list.addSubscriber(subscriber, 'Level3');
1228 subscriber, 'Level3');
1229 var section_node = subscriber_node.ancestor('.subscribers-section');
1230 subscribers_list.removeSubscriber(subscriber);1227 subscribers_list.removeSubscriber(subscriber);
1231 // Entire section is removed along with the subscriber.1228 // Entire section is removed along with the subscriber.
1232 Y.Assert.areEqual(0, _getAllSections(subscribers_list).length);1229 Y.Assert.areEqual(0, _getAllSections(subscribers_list).length);
@@ -1238,9 +1235,7 @@
1238 var subscriber = { name: 'user' };1235 var subscriber = { name: 'user' };
1239 var other_node = subscribers_list.addSubscriber(1236 var other_node = subscribers_list.addSubscriber(
1240 { name: 'other' }, 'Level3');1237 { name: 'other' }, 'Level3');
1241 var subscriber_node = subscribers_list.addSubscriber(1238 subscribers_list.addSubscriber(subscriber, 'Level3');
1242 subscriber, 'Level3');
1243 var section_node = subscriber_node.ancestor('.subscribers-section');
1244 subscribers_list.removeSubscriber(subscriber);1239 subscribers_list.removeSubscriber(subscriber);
1245 // Section is not removed because it still has 'other' subscriber.1240 // Section is not removed because it still has 'other' subscriber.
1246 var all_sections = _getAllSections(subscribers_list);1241 var all_sections = _getAllSections(subscribers_list);
@@ -1341,7 +1336,7 @@
1341 // When there's no activity in progress, nothing happens.1336 // When there's no activity in progress, nothing happens.
1342 var subscribers_list = setUpSubscribersList(this.root);1337 var subscribers_list = setUpSubscribersList(this.root);
1343 var subscriber = { name: 'user' };1338 var subscriber = { name: 'user' };
1344 var node = subscribers_list.addSubscriber(subscriber, 'Level3');1339 subscribers_list.addSubscriber(subscriber, 'Level3');
1345 subscribers_list.stopSubscriberActivity(subscriber);1340 subscribers_list.stopSubscriberActivity(subscriber);
1346 },1341 },
13471342
@@ -1454,10 +1449,9 @@
1454 test_SubscribersLoader_container_error: function() {1449 test_SubscribersLoader_container_error: function() {
1455 // If no container node to hold the subscribers list is specified,1450 // If no container node to hold the subscribers list is specified,
1456 // it fails with an error.1451 // it fails with an error.
1457 var loader =1452 new module.SubscribersLoader({
1458 new module.SubscribersLoader({1453 container_box: '#not-found',
1459 container_box: '#not-found',1454 subscriber_levels: []});
1460 subscriber_levels: []});
1461 },1455 },
14621456
1463 test_SubscribersLoader_context_error: function() {1457 test_SubscribersLoader_context_error: function() {
@@ -1999,7 +1993,7 @@
1999 setup_called = true;1993 setup_called = true;
2000 };1994 };
20011995
2002 var loader = setUpLoader(this.root, config);1996 setUpLoader(this.root, config);
20031997
2004 Y.Assert.isTrue(setup_called);1998 Y.Assert.isTrue(setup_called);
20051999
20062000
=== modified file 'lib/lp/app/javascript/tests/test_expander.js'
--- lib/lp/app/javascript/tests/test_expander.js 2014-01-24 04:41:21 +0000
+++ lib/lp/app/javascript/tests/test_expander.js 2017-07-21 17:11:32 +0000
@@ -61,7 +61,7 @@
61 }61 }
62 var root = this.makeNode();62 var root = this.makeNode();
63 var hook = root.appendChild(this.makeNode('hook'));63 var hook = root.appendChild(this.makeNode('hook'));
64 var icon = hook.appendChild(this.makeNode('icon'));64 hook.appendChild(this.makeNode('icon'));
65 var content = hook.appendChild(this.makeNode('content'));65 var content = hook.appendChild(this.makeNode('content'));
66 if (args.expanded) {66 if (args.expanded) {
67 content.addClass('expanded');67 content.addClass('expanded');
@@ -149,7 +149,7 @@
149 var root = this.makeExpanderHooks();149 var root = this.makeExpanderHooks();
150 var icon = root.one('.icon');150 var icon = root.one('.icon');
151 icon.addClass('hidden');151 icon.addClass('hidden');
152 var expander = this.makeExpander(root);152 this.makeExpander(root);
153 Y.Assert.isFalse(icon.hasClass('hidden'));153 Y.Assert.isFalse(icon.hasClass('hidden'));
154 },154 },
155155
156156
=== modified file 'lib/lp/app/javascript/tests/test_foldables.js'
--- lib/lp/app/javascript/tests/test_foldables.js 2013-03-20 03:41:40 +0000
+++ lib/lp/app/javascript/tests/test_foldables.js 2017-07-21 17:11:32 +0000
@@ -101,7 +101,7 @@
101101
102 var link = Y.one('a');102 var link = Y.one('a');
103 link.simulate('click');103 link.simulate('click');
104 var quote = Y.one('.foldable-quoted');104 quote = Y.one('.foldable-quoted');
105 Y.Assert.areSame(quote.getStyle('display'), 'inline');105 Y.Assert.areSame(quote.getStyle('display'), 'inline');
106106
107 // Make sure that if clicked again it hides.107 // Make sure that if clicked again it hides.
108108
=== modified file 'lib/lp/app/javascript/tests/test_longpoll.js'
--- lib/lp/app/javascript/tests/test_longpoll.js 2017-07-21 17:11:31 +0000
+++ lib/lp/app/javascript/tests/test_longpoll.js 2017-07-21 17:11:32 +0000
@@ -94,7 +94,7 @@
94 Y.on(longpoll.longpoll_start_event, function() {94 Y.on(longpoll.longpoll_start_event, function() {
95 fired = true;95 fired = true;
96 });96 });
97 var manager = this.setupLongPoll();97 this.setupLongPoll();
98 Y.Assert.isTrue(fired, "Start event not fired.");98 Y.Assert.isTrue(fired, "Start event not fired.");
99 },99 },
100100
101101
=== modified file 'lib/lp/bugs/javascript/bugtask_index.js'
--- lib/lp/bugs/javascript/bugtask_index.js 2017-07-21 17:11:31 +0000
+++ lib/lp/bugs/javascript/bugtask_index.js 2017-07-21 17:11:32 +0000
@@ -545,13 +545,13 @@
545 (LP.links.me !== null)) {545 (LP.links.me !== null)) {
546 if (Y.Lang.isValue(bugtarget_content)) {546 if (Y.Lang.isValue(bugtarget_content)) {
547 if (conf.target_is_product) {547 if (conf.target_is_product) {
548 var bugtarget_picker = Y.lp.app.picker.addPickerPatcher(548 Y.lp.app.picker.addPickerPatcher(
549 'Product',549 'Product',
550 conf.bugtask_path,550 conf.bugtask_path,
551 "target_link",551 "target_link",
552 bugtarget_content.get('id'),552 bugtarget_content.get('id'),
553 {"step_title": "Search projects",553 {"step_title": "Search projects",
554 "header": "Change project"});554 "header": "Change project"});
555 }555 }
556 }556 }
557557
@@ -1046,7 +1046,7 @@
1046 if (!Y.Lang.isValue(io_provider)) {1046 if (!Y.Lang.isValue(io_provider)) {
1047 io_provider = Y.lp.client.get_configured_io_provider();1047 io_provider = Y.lp.client.get_configured_io_provider();
1048 }1048 }
1049 var request = io_provider.io(batched_comments_url, {on: handlers});1049 io_provider.io(batched_comments_url, {on: handlers});
1050};1050};
10511051
1052/**1052/**
10531053
=== modified file 'lib/lp/bugs/javascript/duplicates.js'
--- lib/lp/bugs/javascript/duplicates.js 2017-07-21 17:11:31 +0000
+++ lib/lp/bugs/javascript/duplicates.js 2017-07-21 17:11:32 +0000
@@ -339,7 +339,6 @@
339 }339 }
340340
341 var that = this;341 var that = this;
342 var spinner = null;
343 var error_handler = this._error_handler(widget);342 var error_handler = this._error_handler(widget);
344 var submit_url = LP.cache.context.web_link + '/+duplicate';343 var submit_url = LP.cache.context.web_link + '/+duplicate';
345 var y_config = {344 var y_config = {
@@ -362,7 +361,7 @@
362 }361 }
363 }362 }
364 that.set('error', null);363 that.set('error', null);
365 spinner = that._show_bug_spinner(widget);364 that._show_bug_spinner(widget);
366 },365 },
367 success: function(id, response) {366 success: function(id, response) {
368 that._submit_bug_success(367 that._submit_bug_success(
369368
=== modified file 'lib/lp/bugs/javascript/filebug.js'
--- lib/lp/bugs/javascript/filebug.js 2014-01-30 15:04:06 +0000
+++ lib/lp/bugs/javascript/filebug.js 2017-07-21 17:11:32 +0000
@@ -11,11 +11,7 @@
11var namespace = Y.namespace('lp.bugs.filebug');11var namespace = Y.namespace('lp.bugs.filebug');
12var info_type = Y.lp.app.information_type;12var info_type = Y.lp.app.information_type;
1313
14// For tests.14var setup_filebug = function() {
15var skip_animation;
16
17var setup_filebug = function(skip_anim) {
18 skip_animation = skip_anim;
19 if (LP.cache.enable_bugfiling_duplicate_search) {15 if (LP.cache.enable_bugfiling_duplicate_search) {
20 Y.lp.bugs.filebug_dupefinder.setup_dupe_finder();16 Y.lp.bugs.filebug_dupefinder.setup_dupe_finder();
21 }17 }
2218
=== modified file 'lib/lp/bugs/javascript/tests/test_bug_notification_level.js'
--- lib/lp/bugs/javascript/tests/test_bug_notification_level.js 2013-03-20 03:41:40 +0000
+++ lib/lp/bugs/javascript/tests/test_bug_notification_level.js 2017-07-21 17:11:32 +0000
@@ -216,7 +216,7 @@
216 var radio_buttons = node.all('input[name="field.subscription"]');216 var radio_buttons = node.all('input[name="field.subscription"]');
217217
218 module._bug_notification_level_visible = false;218 module._bug_notification_level_visible = false;
219 var state = module._initialize(radio_buttons, level_node);219 module._initialize(radio_buttons, level_node);
220 Y.Assert.isTrue(module._bug_notification_level_visible);220 Y.Assert.isTrue(module._bug_notification_level_visible);
221 },221 },
222222
223223
=== modified file 'lib/lp/bugs/javascript/tests/test_filebug.js'
--- lib/lp/bugs/javascript/tests/test_filebug.js 2013-03-20 03:41:40 +0000
+++ lib/lp/bugs/javascript/tests/test_filebug.js 2017-07-21 17:11:32 +0000
@@ -57,7 +57,7 @@
57 }57 }
58 var form = Y.Node.create(Y.one('#' + form_id).getContent());58 var form = Y.Node.create(Y.one('#' + form_id).getContent());
59 this.fixture.appendChild(form);59 this.fixture.appendChild(form);
60 Y.lp.bugs.filebug.setup_filebug(true);60 Y.lp.bugs.filebug.setup_filebug();
61 },61 },
6262
63 tearDown: function () {63 tearDown: function () {
6464
=== modified file 'lib/lp/bugs/javascript/tests/test_pre_search.js'
--- lib/lp/bugs/javascript/tests/test_pre_search.js 2013-03-20 03:41:40 +0000
+++ lib/lp/bugs/javascript/tests/test_pre_search.js 2017-07-21 17:11:32 +0000
@@ -3,9 +3,8 @@
33
4YUI.add('lp.bugs.bugtask_index.test_pre_search', function (Y) {4YUI.add('lp.bugs.bugtask_index.test_pre_search', function (Y) {
5 var module = Y.lp.bugs.bugtask_index;5 var module = Y.lp.bugs.bugtask_index;
6 // Local aliases6 // Local alias.
7 var Assert = Y.Assert,7 var ArrayAssert = Y.ArrayAssert;
8 ArrayAssert = Y.ArrayAssert;
98
10 // A picker implementation that records method calls for testing.9 // A picker implementation that records method calls for testing.
11 function FauxPicker() {10 function FauxPicker() {
1211
=== modified file 'lib/lp/bugs/javascript/tests/test_subscription.js'
--- lib/lp/bugs/javascript/tests/test_subscription.js 2017-07-21 17:11:31 +0000
+++ lib/lp/bugs/javascript/tests/test_subscription.js 2017-07-21 17:11:32 +0000
@@ -2200,8 +2200,7 @@
2200 var args = { bugs: [ { self: { self_link: 'http://bug/' } } ],2200 var args = { bugs: [ { self: { self_link: 'http://bug/' } } ],
2201 teams: [ { self: { self_link: 'http://team1/' } },2201 teams: [ { self: { self_link: 'http://team1/' } },
2202 { self: { self_link: 'http://team2/' } }] };2202 { self: { self_link: 'http://team2/' } }] };
2203 var data = module._get_unsubscribe_duplicates_text_and_subscriptions(2203 module._get_unsubscribe_duplicates_text_and_subscriptions(args);
2204 args);
2205 }2204 }
22062205
2207 }));2206 }));
@@ -2457,8 +2456,7 @@
2457 var args = { bugs: [ { self: { self_link: 'http://bug/' } } ],2456 var args = { bugs: [ { self: { self_link: 'http://bug/' } } ],
2458 teams: [ { self: { self_link: 'http://team1/' } },2457 teams: [ { self: { self_link: 'http://team1/' } },
2459 { self: { self_link: 'http://team2/' } }] };2458 { self: { self_link: 'http://team2/' } }] };
2460 var data = module._get_unsubscribe_duplicates_text_and_subscriptions(2459 module._get_unsubscribe_duplicates_text_and_subscriptions(args);
2461 args);
2462 }2460 }
24632461
2464 }));2462 }));
24652463
=== modified file 'lib/lp/registry/javascript/distroseries/widgets.js'
--- lib/lp/registry/javascript/distroseries/widgets.js 2013-04-09 05:05:39 +0000
+++ lib/lp/registry/javascript/distroseries/widgets.js 2017-07-21 17:11:32 +0000
@@ -434,7 +434,7 @@
434 // of the parents is among them.434 // of the parents is among them.
435 return true;435 return true;
436 }436 }
437 var ds, choice;437 var ds;
438 for (ds in this._archindep_tags) {438 for (ds in this._archindep_tags) {
439 var arch_tag = this._archindep_tags[ds];439 var arch_tag = this._archindep_tags[ds];
440 var i = 0;440 var i = 0;
441441
=== modified file 'lib/lp/registry/javascript/distroseriesdifferences_details.js'
--- lib/lp/registry/javascript/distroseriesdifferences_details.js 2013-04-09 05:05:39 +0000
+++ lib/lp/registry/javascript/distroseriesdifferences_details.js 2017-07-21 17:11:32 +0000
@@ -106,7 +106,7 @@
106 var blacklist_slot = container.one('div.blacklist-options');106 var blacklist_slot = container.one('div.blacklist-options');
107107
108 if (blacklist_slot !== null) {108 if (blacklist_slot !== null) {
109 var blacklist_widget = new BlacklistWidget(109 new BlacklistWidget(
110 {srcNode: blacklist_slot,110 {srcNode: blacklist_slot,
111 sourceName: source_name,111 sourceName: source_name,
112 dsdLink: api_uri,112 dsdLink: api_uri,
@@ -617,14 +617,14 @@
617617
618namespace.setup = function() {618namespace.setup = function() {
619 Y.all('table.listing a.toggle-extra').each(function(toggle){619 Y.all('table.listing a.toggle-extra').each(function(toggle){
620 var row = new namespace.ExpandableRowWidget({toggle: toggle});620 new namespace.ExpandableRowWidget({toggle: toggle});
621 });621 });
622};622};
623623
624var set_package_diff_status = function(container, new_status, note_msg) {624var set_package_diff_status = function(container, new_status, note_msg) {
625 container.removeClass('request-derived-diff');625 container.removeClass('request-derived-diff');
626 container.removeClass('PENDING');626 container.removeClass('PENDING');
627 note = container.all('.note').remove();627 container.all('.note').remove();
628 container.addClass(new_status);628 container.addClass(new_status);
629 if (note_msg !== undefined) {629 if (note_msg !== undefined) {
630 container.append([630 container.append([
631631
=== modified file 'lib/lp/registry/javascript/structural-subscription.js'
--- lib/lp/registry/javascript/structural-subscription.js 2017-07-21 17:11:31 +0000
+++ lib/lp/registry/javascript/structural-subscription.js 2017-07-21 17:11:32 +0000
@@ -885,7 +885,7 @@
885 .set('text', LP.cache.context.title);885 .set('text', LP.cache.context.title);
886 add_recipient_picker(content_node, hide_recipient_picker);886 add_recipient_picker(content_node, hide_recipient_picker);
887887
888 var accordion = create_accordion('#accordion-overlay', content_node);888 create_accordion('#accordion-overlay', content_node);
889889
890 // Set up click handlers for the events radio buttons.890 // Set up click handlers for the events radio buttons.
891 var radio_group = Y.all('#events input');891 var radio_group = Y.all('#events input');
892892
=== modified file 'lib/lp/registry/javascript/tests/test_distroseriesdifferences_details.js'
--- lib/lp/registry/javascript/tests/test_distroseriesdifferences_details.js 2017-07-21 17:11:31 +0000
+++ lib/lp/registry/javascript/tests/test_distroseriesdifferences_details.js 2017-07-21 17:11:32 +0000
@@ -95,7 +95,7 @@
95 },95 },
9696
97 test_initializer: function() {97 test_initializer: function() {
98 var row = new module.ExpandableRowWidget({toggle: this.toggle});98 new module.ExpandableRowWidget({toggle: this.toggle});
99 Y.Assert.isTrue(this.toggle.hasClass('treeCollapsed'));99 Y.Assert.isTrue(this.toggle.hasClass('treeCollapsed'));
100 Y.Assert.isTrue(this.toggle.hasClass('sprite'));100 Y.Assert.isTrue(this.toggle.hasClass('sprite'));
101 },101 },
102102
=== modified file 'lib/lp/registry/javascript/tests/test_team_mailinglists.js'
--- lib/lp/registry/javascript/tests/test_team_mailinglists.js 2017-07-21 17:11:31 +0000
+++ lib/lp/registry/javascript/tests/test_team_mailinglists.js 2017-07-21 17:11:32 +0000
@@ -54,8 +54,7 @@
54 forwards_navigation: Y.all('.last,.next'),54 forwards_navigation: Y.all('.last,.next'),
55 backwards_navigation: Y.all('.first,.previous')55 backwards_navigation: Y.all('.first,.previous')
56 };56 };
57 var message_list = new Y.lp.registry.team.mailinglists.MessageList(57 new Y.lp.registry.team.mailinglists.MessageList(config);
58 config);
5958
60 var fired = false;59 var fired = false;
61 Y.on('messageList:backwards', function () {60 Y.on('messageList:backwards', function () {
6261
=== modified file 'lib/lp/soyuz/javascript/base.js'
--- lib/lp/soyuz/javascript/base.js 2011-04-11 06:49:29 +0000
+++ lib/lp/soyuz/javascript/base.js 2017-07-21 17:11:32 +0000
@@ -23,7 +23,7 @@
23 failure_message.addClass('update-failure-message');23 failure_message.addClass('update-failure-message');
24 failure_message.one('span').set('text', text);24 failure_message.one('span').set('text', text);
2525
26 var retry_link = failure_message.one('a')26 failure_message.one('a')
27 .addClass('update-retry')27 .addClass('update-retry')
28 .set('href', '')28 .set('href', '')
29 .on('click', handler);29 .on('click', handler);
3030
=== modified file 'lib/lp/testing/tests/test_yuixhr_fixture.js'
--- lib/lp/testing/tests/test_yuixhr_fixture.js 2013-04-08 08:06:09 +0000
+++ lib/lp/testing/tests/test_yuixhr_fixture.js 2017-07-21 17:11:32 +0000
@@ -53,7 +53,7 @@
53 },53 },
5454
55 test_teardown_clears_attributes: function() {55 test_teardown_clears_attributes: function() {
56 var data = module.setup(this, 'baseline');56 module.setup(this, 'baseline');
57 module.teardown(this);57 module.teardown(this);
58 Y.Assert.isUndefined(this._lp_fixture_setups);58 Y.Assert.isUndefined(this._lp_fixture_setups);
59 Y.Assert.isUndefined(this._lp_fixture_data);59 Y.Assert.isUndefined(this._lp_fixture_data);