rm pig disgusting substring

This commit is contained in:
James Campos 2011-12-13 15:52:46 -08:00
parent 0bd0f50e88
commit c52b71742f
2 changed files with 4 additions and 4 deletions

View File

@ -2175,7 +2175,7 @@
},
x: function() {
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);
}
},
@ -3040,7 +3040,7 @@
Main = {
init: function() {
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];
if (temp === 'res') {
g.REPLY = temp;

View File

@ -1746,7 +1746,7 @@ watcher =
watcher.toggle @parentNode
x: ->
[board, _, id] = @nextElementSibling
.getAttribute('href').substring(1).split('/')
.getAttribute('href')[1..].split('/')
watcher.unwatch board, id
toggle: (thread) ->
@ -2355,7 +2355,7 @@ imgExpand =
Main =
init: ->
pathname = location.pathname.substring(1).split('/')
pathname = location.pathname[1..].split('/')
[g.BOARD, temp] = pathname
if temp is 'res'
g.REPLY = temp