fix navigation bug

This commit is contained in:
ccd0 2014-04-03 04:55:31 -07:00
parent bf6e918d0d
commit 6780ef629d
4 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* 4chan X - Version 1.4.2 - 2014-04-02 * 4chan X - Version 1.4.2 - 2014-04-03
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE

View File

@ -24,7 +24,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* 4chan X - Version 1.4.2 - 2014-04-02 * 4chan X - Version 1.4.2 - 2014-04-03
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -6220,6 +6220,9 @@
flagsInput: function() { flagsInput: function() {
var flag, nodes; var flag, nodes;
nodes = QR.nodes; nodes = QR.nodes;
if (!nodes) {
return;
}
if (nodes.flagSelector) { if (nodes.flagSelector) {
$.rm(nodes.flagSelector); $.rm(nodes.flagSelector);
delete nodes.flagSelector; delete nodes.flagSelector;

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* 4chan X - Version 1.4.2 - 2014-04-02 * 4chan X - Version 1.4.2 - 2014-04-03
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/ccd0/4chan-x/blob/master/LICENSE * https://github.com/ccd0/4chan-x/blob/master/LICENSE
@ -6245,6 +6245,9 @@
flagsInput: function() { flagsInput: function() {
var flag, nodes; var flag, nodes;
nodes = QR.nodes; nodes = QR.nodes;
if (!nodes) {
return;
}
if (nodes.flagSelector) { if (nodes.flagSelector) {
$.rm(nodes.flagSelector); $.rm(nodes.flagSelector);
delete nodes.flagSelector; delete nodes.flagSelector;

View File

@ -569,6 +569,7 @@ QR =
flagsInput: -> flagsInput: ->
{nodes} = QR {nodes} = QR
return if not nodes
if nodes.flagSelector if nodes.flagSelector
$.rm nodes.flagSelector $.rm nodes.flagSelector
delete nodes.flagSelector delete nodes.flagSelector