timeEl -> time
This commit is contained in:
parent
ee53a002b7
commit
7876632602
@ -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() {
|
||||
|
||||
@ -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) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user