Commit ceeaaeb4 authored by Michał Gołębiowski's avatar Michał Gołębiowski

Ajax: Remove remnants of the load event alias handling

(cherry-picked from 38a669735d08bcbd28cfb0d77eee82c67aa89eeb)

Refs 0705be475092aede1eddae01319ec931fb9c65fc
Refs gh-2287
Closes gh-2362
parent 42ea7468
...@@ -4,22 +4,13 @@ define([ ...@@ -4,22 +4,13 @@ define([
"../ajax", "../ajax",
"../traversing", "../traversing",
"../manipulation", "../manipulation",
"../selector", "../selector"
// Optional event/alias dependency
"../event/alias"
], function( jQuery ) { ], function( jQuery ) {
// Keep a copy of the old load method
var _load = jQuery.fn.load;
/** /**
* Load a url into a page * Load a url into a page
*/ */
jQuery.fn.load = function( url, params, callback ) { jQuery.fn.load = function( url, params, callback ) {
if ( typeof url !== "string" && _load ) {
return _load.apply( this, arguments );
}
var selector, response, type, var selector, response, type,
self = this, self = this,
off = url.indexOf(" "); off = url.indexOf(" ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment