198c218799f6e6d660911602e6f8c5daf9b9337fRyan Grove * Extended Node interface with a basic IO API.
aef806839063b0d942fbc3ebcd54d744b6ee840fMatt Sweeney * @module node
aef806839063b0d942fbc3ebcd54d744b6ee840fMatt Sweeney * @submodule node-load
aef806839063b0d942fbc3ebcd54d744b6ee840fMatt Sweeney * The default IO complete handler.
aef806839063b0d942fbc3ebcd54d744b6ee840fMatt Sweeney * @method _ioComplete
aef806839063b0d942fbc3ebcd54d744b6ee840fMatt Sweeney * @protected
198c218799f6e6d660911602e6f8c5daf9b9337fRyan Grove * @param {String} code The response code.
198c218799f6e6d660911602e6f8c5daf9b9337fRyan Grove * @param {Object} response The response object.
198c218799f6e6d660911602e6f8c5daf9b9337fRyan Grove * @param {Array} args An array containing the callback and selector
39c4970fb513131af091c2d6404e41437c45fc82Matt SweeneyY.Node.prototype._ioComplete = function(code, response, args) {
db111d0f7d6d562cdf67118b42794b711a7e8226Matt Sweeney * Loads content from the given url and replaces the Node's
64c2dcbcee719023f734c0573807e2f56831f1b5Evan Goer * existing content with the remote content.
db111d0f7d6d562cdf67118b42794b711a7e8226Matt Sweeney * @method load
198c218799f6e6d660911602e6f8c5daf9b9337fRyan Grove * @param {String} url The URL to load via XMLHttpRequest.
198c218799f6e6d660911602e6f8c5daf9b9337fRyan Grove * @param {String} selector An optional selector representing a subset of an HTML document to load.
198c218799f6e6d660911602e6f8c5daf9b9337fRyan Grove * @param {Function} callback An optional function to run after the content has been loaded.
db111d0f7d6d562cdf67118b42794b711a7e8226Matt Sweeney * @chainable
39c4970fb513131af091c2d6404e41437c45fc82Matt SweeneyY.Node.prototype.load = function(url, selector, callback) {
39c4970fb513131af091c2d6404e41437c45fc82Matt Sweeney return this;