Skip to content
Myr

misc refactoring

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 6f85c14 · Browse files · 2 files+4 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−9 removed

  • other:+4 added−9 removed

2 files+4 added−9 removed

modified:docs/guide.md+2 added-3 removed
732 unmodified lines
733 // => { error: ['email delivery failed'], info: [] }734735Flash notification message may also utilize formatters, by default only the %s string and %d integer formatters is available:736737 req.notify('info', 'email delivery to _%s_ from _%s_ failed.', toUser, fromUser);737 req.notify('info', 'email delivery to <em>%s</em> from <em>%s</em> failed.', toUser, fromUser);738739Argument HTML is escaped, to prevent XSS, however HTML or the mini-markdown740language you see in use above in the notification format are valid.739Argument HTML is escaped, to prevent XSS, however HTML notification format is valid.740741### req.isXMLHttpRequest742743Also aliased as _req.xhr_, this getter checks the _X-Requested-With_ header
623 unmodified lines
modified:lib/request.js+2 added-6 removed
18 unmodified lines
19 * Default notification formatters.20 */2122var defaultFormatters = exports.formatters = {23 s: function(val){24 return String(val);25 },26 d: function(val){27 return val | 0;28 }23 s: String24 , d: function(val){ return val | 0; }25};2627/**28 * Return request header or optional default.
311 unmodified lines