fix error when sauces deleted; close #273

This commit is contained in:
James Campos 2011-09-10 02:33:46 -07:00
parent e8a48a8147
commit fd1cb4b9bd
2 changed files with 2 additions and 2 deletions

View File

@ -1997,7 +1997,7 @@
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
s = _ref[_i];
if (s[0] !== '#') {
if (s && s[0] !== '#') {
_results.push(s);
}
}

View File

@ -1590,7 +1590,7 @@ anonymize =
sauce =
init: ->
sauce.prefixes = (s for s in (conf['flavors'].split '\n') when s[0] != '#')
sauce.prefixes = (s for s in (conf['flavors'].split '\n') when s and s[0] != '#')
sauce.names = (prefix.match(/(\w+)\./)[1] for prefix in sauce.prefixes)
g.callbacks.push (root) ->
return if root.className is 'inline'