javascripts/batman.jquery.js in dashing-1.0.4 vs javascripts/batman.jquery.js in dashing-1.0.5
- old
+ new
@@ -47,10 +47,13 @@
},
appendChild: function(parent, child) {
Batman.DOM.willInsertNode(child);
jQuery(parent).append(child);
return Batman.DOM.didInsertNode(child);
+ },
+ innerText: function(node) {
+ return jQuery(node).text();
}
});
Batman.Request.prototype._parseResponseHeaders = function(xhr) {
var headers;
@@ -64,11 +67,10 @@
return acc;
}, {});
};
Batman.Request.prototype._prepareOptions = function(data) {
- var options, _ref,
- _this = this;
+ var options, _ref, _this = this;
options = {
url: this.get('url'),
type: this.get('method'),
dataType: this.get('type'),
data: data || this.get('data'),
\ No newline at end of file