null+****@clear*****
null+****@clear*****
2012年 7月 26日 (木) 16:59:18 JST
SHIMODA Hiroshi 2012-07-26 16:59:18 +0900 (Thu, 26 Jul 2012) New Revision: fd1215dc502ce013cf0b0a1839e6d1087e0bd7c3 https://github.com/groonga/gcs/commit/fd1215dc502ce013cf0b0a1839e6d1087e0bd7c3 Log: Remove obsolete "XMLFragment.prototype.fragment" Modified files: lib/xmlbuilder.js Modified: lib/xmlbuilder.js (+1 -13) =================================================================== --- lib/xmlbuilder.js 2012-07-26 16:58:17 +0900 (e6c4a13) +++ lib/xmlbuilder.js 2012-07-26 16:59:18 +0900 (4682427) @@ -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]; -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...下载