Skip to content

Commit

Permalink
Remove obsolete "XMLFragment.prototype.fragment"
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jul 26, 2012
1 parent e602594 commit fd1215d
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions lib/xmlbuilder.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
module.exports = require('xmlbuilder');
var XMLFragment = require('xmlbuilder/lib/XMLFragment');
module.exports.XMLFragment = XMLFragment;

XMLFragment.prototype.fragment = function(fragments) {
if (fragments) {
if (!Array.isArray(fragments))
fragments = [fragments];
fragments.forEach(function(fragment) {
fragment.parent = this;
this.children.push(fragment);
}, this);
}
return this;
};
var XMLFragment = require('xmlbuilder/lib/XMLFragment');

XMLFragment.prototype.importXMLBuilder = function(xmlbuilder) {
var root = xmlbuilder.children[xmlbuilder.children.length-1];
Expand Down

0 comments on commit fd1215d

Please sign in to comment.