From 7876632602fb90bfa32cfd81daa582c2658095c8 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 14 Jun 2011 19:36:57 -0700 Subject: [PATCH] timeEl -> time --- 4chan_x.user.js | 6 +++--- script.coffee | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 77bd9ea7f..6bf3a8399 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1700,7 +1700,7 @@ init: function() { Time.foo(); return g.callbacks.push(function(root) { - var day, hour, min, month, s, timeEl, year, _, _ref; + var day, hour, min, month, s, time, year, _, _ref; if (root.className === 'inline') { return; } @@ -1710,10 +1710,10 @@ month -= 1; hour = g.chanOffset + Number(hour); Time.date = new Date(year, month, day, hour, min); - timeEl = $.el('time', { + time = $.el('time', { textContent: ' ' + Time.funk(Time) + ' ' }); - return $.replace(s, timeEl); + return $.replace(s, time); }); }, foo: function() { diff --git a/script.coffee b/script.coffee index 4a9634840..dd0b85069 100644 --- a/script.coffee +++ b/script.coffee @@ -1376,9 +1376,9 @@ Time = Time.date = new Date year, month, day, hour, min #XXX /b/ will have seconds cut off - timeEl = $.el 'time', + time = $.el 'time', textContent: ' ' + Time.funk(Time) + ' ' - $.replace s, timeEl + $.replace s, time foo: -> code = $.config('time').replace /%([A-Za-z])/g, (s, c) ->