Skip to content

Commit

Permalink
removing console messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh authored and josevalim committed May 31, 2010
1 parent 4b2145b commit 72970d5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion test/public/vendor/jquery-1.4.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -5134,7 +5134,6 @@ jQuery.extend({
// Set header so the called script knows that it's an XMLHttpRequest
// Only send the header if it's not a remote XHR
if ( !remote ) {
console.log('setting X-Requested-With header');
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
}

Expand Down
9 changes: 0 additions & 9 deletions test/public/vendor/rails.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jQuery(function ($) {
* Handles execution of remote calls firing overridable events along the way
*/
callRemote: function () {
console.log('callRemote invoked');
var el = this,
method = el.attr('method') || el.attr('data-method') || 'GET',
url = el.attr('action') || el.attr('href'),
Expand All @@ -33,7 +32,6 @@ jQuery(function ($) {
} else {
if (el.triggerAndReturn('ajax:before')) {
var data = el.is('form') ? el.serializeArray() : [];
console.log('going to call invoke');
$.ajax({
url: url,
data: data,
Expand All @@ -43,17 +41,12 @@ jQuery(function ($) {
el.trigger('ajax:loading', xhr);
},
success: function (data, status, xhr) {
console.log('++ success callback');
console.log('++ data is');
console.log(data);
el.trigger('ajax:success', [data, status, xhr]);
},
complete: function (xhr) {
console.log('++ complete callback');
el.trigger('ajax:complete', xhr);
},
error: function (xhr, status, error) {
console.log('++ error callback');
el.trigger('ajax:failure', [xhr, status, error]);
}
});
Expand Down Expand Up @@ -86,9 +79,7 @@ jQuery(function ($) {
});

$('a[data-remote],input[data-remote]').live('click', function (e) {
console.log('clicked');
$(this).callRemote();
return false;
e.preventDefault();
});

Expand Down

0 comments on commit 72970d5

Please sign in to comment.