Merge branch 'v3'

This commit is contained in:
Zixaphir 2014-05-03 16:07:23 -07:00
commit 93c5ecae9c
3 changed files with 9 additions and 9 deletions

View File

@ -16531,18 +16531,18 @@
if (this.isClone) {
return;
}
return this.nodes.date.textContent = Time.funk(this.info.date);
return this.nodes.date.textContent = Time.funk(Time, this.info.date);
},
createFunc: function(format) {
var code;
code = format.replace(/%([A-Za-z])/g, function(s, c) {
if (c in Time.formatters) {
return "' + this.formatters." + c + ".call(date) + '";
return "' + Time.formatters." + c + ".call(date) + '";
} else {
return s;
}
});
return Function('date', "return '" + code + "'");
return Function('Time', 'date', "return '" + code + "'");
},
day: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],

View File

@ -16551,18 +16551,18 @@
if (this.isClone) {
return;
}
return this.nodes.date.textContent = Time.funk(this.info.date);
return this.nodes.date.textContent = Time.funk(Time, this.info.date);
},
createFunc: function(format) {
var code;
code = format.replace(/%([A-Za-z])/g, function(s, c) {
if (c in Time.formatters) {
return "' + this.formatters." + c + ".call(date) + '";
return "' + Time.formatters." + c + ".call(date) + '";
} else {
return s;
}
});
return Function('date', "return '" + code + "'");
return Function('Time', 'date', "return '" + code + "'");
},
day: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],

View File

@ -8,14 +8,14 @@ Time =
cb: @node
node: ->
return if @isClone
@nodes.date.textContent = Time.funk @info.date
@nodes.date.textContent = Time.funk Time, @info.date
createFunc: (format) ->
code = format.replace /%([A-Za-z])/g, (s, c) ->
if c of Time.formatters
"' + this.formatters.#{c}.call(date) + '"
"' + Time.formatters.#{c}.call(date) + '"
else
s
Function 'date', "return '#{code}'"
Function 'Time', 'date', "return '#{code}'"
day: [
'Sunday'
'Monday'