| 32334 | |
| 32335 | module.exports = XMLStringifier = (function() { |
| 32336 | function XMLStringifier(options) { |
| 32337 | this.assertLegalChar = bind(this.assertLegalChar, this); |
| 32338 | var key, ref, value; |
| 32339 | options || (options = {}); |
| 32340 | this.noDoubleEncoding = options.noDoubleEncoding; |
| 32341 | ref = options.stringify || {}; |
| 32342 | for (key in ref) { |
| 32343 | if (!hasProp.call(ref, key)) continue; |
| 32344 | value = ref[key]; |
| 32345 | this[key] = value; |
| 32346 | } |
| 32347 | } |
| 32348 | |
| 32349 | XMLStringifier.prototype.eleName = function(val) { |
| 32350 | val = '' + val || ''; |