some formatting

This commit is contained in:
Mark McDowall 2014-05-12 17:35:32 -07:00
parent 2fdb0513e8
commit a2095f6f29
2 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,4 @@
define(
[
define([
'jquery',
'messenger'
], function ($, Messenger) {
@ -32,7 +31,7 @@
message : messageText,
type : 'error',
hideAfter : 1000,
showCloseButton: true
showCloseButton : true
};
new Messenger().post(message);
@ -64,7 +63,7 @@
var message = {
type : 'error',
hideAfter : 1000,
showCloseButton: true
showCloseButton : true
};
if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) {

View File

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