timeEl -> time
This commit is contained in:
parent
ee53a002b7
commit
7876632602
@ -1700,7 +1700,7 @@
|
|||||||
init: function() {
|
init: function() {
|
||||||
Time.foo();
|
Time.foo();
|
||||||
return g.callbacks.push(function(root) {
|
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') {
|
if (root.className === 'inline') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1710,10 +1710,10 @@
|
|||||||
month -= 1;
|
month -= 1;
|
||||||
hour = g.chanOffset + Number(hour);
|
hour = g.chanOffset + Number(hour);
|
||||||
Time.date = new Date(year, month, day, hour, min);
|
Time.date = new Date(year, month, day, hour, min);
|
||||||
timeEl = $.el('time', {
|
time = $.el('time', {
|
||||||
textContent: ' ' + Time.funk(Time) + ' '
|
textContent: ' ' + Time.funk(Time) + ' '
|
||||||
});
|
});
|
||||||
return $.replace(s, timeEl);
|
return $.replace(s, time);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
foo: function() {
|
foo: function() {
|
||||||
|
|||||||
@ -1376,9 +1376,9 @@ Time =
|
|||||||
Time.date = new Date year, month, day, hour, min
|
Time.date = new Date year, month, day, hour, min
|
||||||
#XXX /b/ will have seconds cut off
|
#XXX /b/ will have seconds cut off
|
||||||
|
|
||||||
timeEl = $.el 'time',
|
time = $.el 'time',
|
||||||
textContent: ' ' + Time.funk(Time) + ' '
|
textContent: ' ' + Time.funk(Time) + ' '
|
||||||
$.replace s, timeEl
|
$.replace s, time
|
||||||
|
|
||||||
foo: ->
|
foo: ->
|
||||||
code = $.config('time').replace /%([A-Za-z])/g, (s, c) ->
|
code = $.config('time').replace /%([A-Za-z])/g, (s, c) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user