From 48f83502cdf5d7b62a4bbe9316593f25143b42af Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 14 Jun 2011 19:39:10 -0700 Subject: [PATCH] stragglers --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 6bf3a8399..bad087399 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1732,13 +1732,13 @@ case 'p': case 'P': case 'y': - return "' + time." + c + "() + '"; + return "' + Time." + c + "() + '"; break; default: return s; } }); - return Time.funk = Function('time', "return '" + code + "'"); + return Time.funk = Function('Time', "return '" + code + "'"); }, day: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], diff --git a/script.coffee b/script.coffee index dd0b85069..1c50c5f45 100644 --- a/script.coffee +++ b/script.coffee @@ -1383,9 +1383,9 @@ Time = foo: -> code = $.config('time').replace /%([A-Za-z])/g, (s, c) -> switch c - when 'a', 'A', 'b', 'B', 'd', 'H', 'I', 'm', 'M', 'p', 'P', 'y' then "' + time.#{c}() + '" + when 'a', 'A', 'b', 'B', 'd', 'H', 'I', 'm', 'M', 'p', 'P', 'y' then "' + Time.#{c}() + '" else s - Time.funk = Function 'time', "return '#{code}'" + Time.funk = Function 'Time', "return '#{code}'" day: [ 'Sunday' 'Monday'