rm pig disgusting substring
This commit is contained in:
parent
0bd0f50e88
commit
c52b71742f
@ -2175,7 +2175,7 @@
|
|||||||
},
|
},
|
||||||
x: function() {
|
x: function() {
|
||||||
var board, id, _, _ref;
|
var board, id, _, _ref;
|
||||||
_ref = this.nextElementSibling.getAttribute('href').substring(1).split('/'), board = _ref[0], _ = _ref[1], id = _ref[2];
|
_ref = this.nextElementSibling.getAttribute('href').slice(1).split('/'), board = _ref[0], _ = _ref[1], id = _ref[2];
|
||||||
return watcher.unwatch(board, id);
|
return watcher.unwatch(board, id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -3040,7 +3040,7 @@
|
|||||||
Main = {
|
Main = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var cutoff, hiddenThreads, id, now, pathname, temp, timestamp, update, _ref;
|
var cutoff, hiddenThreads, id, now, pathname, temp, timestamp, update, _ref;
|
||||||
pathname = location.pathname.substring(1).split('/');
|
pathname = location.pathname.slice(1).split('/');
|
||||||
g.BOARD = pathname[0], temp = pathname[1];
|
g.BOARD = pathname[0], temp = pathname[1];
|
||||||
if (temp === 'res') {
|
if (temp === 'res') {
|
||||||
g.REPLY = temp;
|
g.REPLY = temp;
|
||||||
|
|||||||
@ -1746,7 +1746,7 @@ watcher =
|
|||||||
watcher.toggle @parentNode
|
watcher.toggle @parentNode
|
||||||
x: ->
|
x: ->
|
||||||
[board, _, id] = @nextElementSibling
|
[board, _, id] = @nextElementSibling
|
||||||
.getAttribute('href').substring(1).split('/')
|
.getAttribute('href')[1..].split('/')
|
||||||
watcher.unwatch board, id
|
watcher.unwatch board, id
|
||||||
|
|
||||||
toggle: (thread) ->
|
toggle: (thread) ->
|
||||||
@ -2355,7 +2355,7 @@ imgExpand =
|
|||||||
|
|
||||||
Main =
|
Main =
|
||||||
init: ->
|
init: ->
|
||||||
pathname = location.pathname.substring(1).split('/')
|
pathname = location.pathname[1..].split('/')
|
||||||
[g.BOARD, temp] = pathname
|
[g.BOARD, temp] = pathname
|
||||||
if temp is 'res'
|
if temp is 'res'
|
||||||
g.REPLY = temp
|
g.REPLY = temp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user