fix error when sauces deleted; close #273
This commit is contained in:
parent
e8a48a8147
commit
fd1cb4b9bd
@ -1997,7 +1997,7 @@
|
|||||||
_results = [];
|
_results = [];
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
s = _ref[_i];
|
s = _ref[_i];
|
||||||
if (s[0] !== '#') {
|
if (s && s[0] !== '#') {
|
||||||
_results.push(s);
|
_results.push(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1590,7 +1590,7 @@ anonymize =
|
|||||||
|
|
||||||
sauce =
|
sauce =
|
||||||
init: ->
|
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)
|
sauce.names = (prefix.match(/(\w+)\./)[1] for prefix in sauce.prefixes)
|
||||||
g.callbacks.push (root) ->
|
g.callbacks.push (root) ->
|
||||||
return if root.className is 'inline'
|
return if root.className is 'inline'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user