explicit Time.node
This commit is contained in:
parent
fcff8bc70a
commit
34c37c719a
@ -1705,7 +1705,9 @@
|
||||
Time = {
|
||||
init: function() {
|
||||
Time.foo();
|
||||
return g.callbacks.push(function(root) {
|
||||
return g.callbacks.push(Time.node);
|
||||
},
|
||||
node: function(root) {
|
||||
var day, hour, min, month, s, time, year, _, _ref;
|
||||
if (root.className === 'inline') {
|
||||
return;
|
||||
@ -1720,7 +1722,6 @@
|
||||
textContent: ' ' + Time.funk(Time) + ' '
|
||||
});
|
||||
return $.replace(s, time);
|
||||
});
|
||||
},
|
||||
foo: function() {
|
||||
var code;
|
||||
|
||||
@ -1364,7 +1364,8 @@ sauce =
|
||||
Time =
|
||||
init: ->
|
||||
Time.foo()
|
||||
g.callbacks.push (root) ->
|
||||
g.callbacks.push Time.node
|
||||
node: (root) ->
|
||||
return if root.className is 'inline'
|
||||
s = $('span[id^=no]', root).previousSibling
|
||||
[_, month, day, year, hour, min] =
|
||||
@ -1378,7 +1379,6 @@ Time =
|
||||
time = $.el 'time',
|
||||
textContent: ' ' + Time.funk(Time) + ' '
|
||||
$.replace s, time
|
||||
|
||||
foo: ->
|
||||
code = $.config('time').replace /%([A-Za-z])/g, (s, c) ->
|
||||
switch c
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user