Fix a bug where the QR not being enabled could break JSON Navigation

This commit is contained in:
Zixaphir 2014-03-13 00:26:08 -07:00
parent 61e1447a5f
commit 2a703f08a2
4 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.4.1 - 2014-03-12
* 4chan X - Version 1.4.1 - 2014-03-13
*
* Licensed under the MIT license.
* https://github.com/Spittie/4chan-x/blob/master/LICENSE

View File

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

View File

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

View File

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