some formatting

pull/2/head
Mark McDowall 11 years ago
parent 2fdb0513e8
commit a2095f6f29

@ -1,5 +1,4 @@
define( define([
[
'jquery', 'jquery',
'messenger' 'messenger'
], function ($, Messenger) { ], function ($, Messenger) {

@ -4,7 +4,8 @@ String.prototype.format = function () {
return this.replace(/{(\d+)}/g, function (match, number) { return this.replace(/{(\d+)}/g, function (match, number) {
if (typeof args[number] !== 'undefined') { if (typeof args[number] !== 'undefined') {
return args[number]; return args[number];
} else { }
else {
return match; return match;
} }
}); });

Loading…
Cancel
Save