}
var quote_string = [
- function(str, quote, dq, sq) {
- return dq > sq ? quote_single(str) : quote_double(str);
- },
+ null,
quote_single,
quote_double,
function(str, quote) {
return quote == "'" ? quote_single(str) : quote_double(str);
},
- ][options.quote_style];
+ ][options.quote_style] || function(str, quote, dq, sq) {
+ return dq > sq ? quote_single(str) : quote_double(str);
+ };
function make_string(str, quote) {
var dq = 0, sq = 0;