timeEl -> time

This commit is contained in:
James Campos 2011-06-14 19:36:57 -07:00
parent ee53a002b7
commit 7876632602
2 changed files with 5 additions and 5 deletions

View File

@ -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() {

View File

@ -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) ->