Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js
File: backbone.js
if (handler.route.test(fragment)) {
[2000] Fix | Delete
handler.callback(fragment);
[2001] Fix | Delete
return true;
[2002] Fix | Delete
}
[2003] Fix | Delete
});
[2004] Fix | Delete
},
[2005] Fix | Delete
[2006] Fix | Delete
// Save a fragment into the hash history, or replace the URL state if the
[2007] Fix | Delete
// 'replace' option is passed. You are responsible for properly URL-encoding
[2008] Fix | Delete
// the fragment in advance.
[2009] Fix | Delete
//
[2010] Fix | Delete
// The options object can contain `trigger: true` if you wish to have the
[2011] Fix | Delete
// route callback be fired (not usually desirable), or `replace: true`, if
[2012] Fix | Delete
// you wish to modify the current URL without adding an entry to the history.
[2013] Fix | Delete
navigate: function(fragment, options) {
[2014] Fix | Delete
if (!History.started) return false;
[2015] Fix | Delete
if (!options || options === true) options = {trigger: !!options};
[2016] Fix | Delete
[2017] Fix | Delete
// Normalize the fragment.
[2018] Fix | Delete
fragment = this.getFragment(fragment || '');
[2019] Fix | Delete
[2020] Fix | Delete
// Strip trailing slash on the root unless _trailingSlash is true
[2021] Fix | Delete
var rootPath = this.root;
[2022] Fix | Delete
if (!this._trailingSlash && (fragment === '' || fragment.charAt(0) === '?')) {
[2023] Fix | Delete
rootPath = rootPath.slice(0, -1) || '/';
[2024] Fix | Delete
}
[2025] Fix | Delete
var url = rootPath + fragment;
[2026] Fix | Delete
[2027] Fix | Delete
// Strip the fragment of the query and hash for matching.
[2028] Fix | Delete
fragment = fragment.replace(pathStripper, '');
[2029] Fix | Delete
[2030] Fix | Delete
// Decode for matching.
[2031] Fix | Delete
var decodedFragment = this.decodeFragment(fragment);
[2032] Fix | Delete
[2033] Fix | Delete
if (this.fragment === decodedFragment) return;
[2034] Fix | Delete
this.fragment = decodedFragment;
[2035] Fix | Delete
[2036] Fix | Delete
// If pushState is available, we use it to set the fragment as a real URL.
[2037] Fix | Delete
if (this._usePushState) {
[2038] Fix | Delete
this.history[options.replace ? 'replaceState' : 'pushState']({}, document.title, url);
[2039] Fix | Delete
[2040] Fix | Delete
// If hash changes haven't been explicitly disabled, update the hash
[2041] Fix | Delete
// fragment to store history.
[2042] Fix | Delete
} else if (this._wantsHashChange) {
[2043] Fix | Delete
this._updateHash(this.location, fragment, options.replace);
[2044] Fix | Delete
if (this.iframe && fragment !== this.getHash(this.iframe.contentWindow)) {
[2045] Fix | Delete
var iWindow = this.iframe.contentWindow;
[2046] Fix | Delete
[2047] Fix | Delete
// Opening and closing the iframe tricks IE7 and earlier to push a
[2048] Fix | Delete
// history entry on hash-tag change. When replace is true, we don't
[2049] Fix | Delete
// want this.
[2050] Fix | Delete
if (!options.replace) {
[2051] Fix | Delete
iWindow.document.open();
[2052] Fix | Delete
iWindow.document.close();
[2053] Fix | Delete
}
[2054] Fix | Delete
[2055] Fix | Delete
this._updateHash(iWindow.location, fragment, options.replace);
[2056] Fix | Delete
}
[2057] Fix | Delete
[2058] Fix | Delete
// If you've told us that you explicitly don't want fallback hashchange-
[2059] Fix | Delete
// based history, then `navigate` becomes a page refresh.
[2060] Fix | Delete
} else {
[2061] Fix | Delete
return this.location.assign(url);
[2062] Fix | Delete
}
[2063] Fix | Delete
if (options.trigger) return this.loadUrl(fragment);
[2064] Fix | Delete
},
[2065] Fix | Delete
[2066] Fix | Delete
// Update the hash location, either replacing the current entry, or adding
[2067] Fix | Delete
// a new one to the browser history.
[2068] Fix | Delete
_updateHash: function(location, fragment, replace) {
[2069] Fix | Delete
if (replace) {
[2070] Fix | Delete
var href = location.href.replace(/(javascript:|#).*$/, '');
[2071] Fix | Delete
location.replace(href + '#' + fragment);
[2072] Fix | Delete
} else {
[2073] Fix | Delete
// Some browsers require that `hash` contains a leading #.
[2074] Fix | Delete
location.hash = '#' + fragment;
[2075] Fix | Delete
}
[2076] Fix | Delete
}
[2077] Fix | Delete
[2078] Fix | Delete
});
[2079] Fix | Delete
[2080] Fix | Delete
// Create the default Backbone.history.
[2081] Fix | Delete
Backbone.history = new History;
[2082] Fix | Delete
[2083] Fix | Delete
// Helpers
[2084] Fix | Delete
// -------
[2085] Fix | Delete
[2086] Fix | Delete
// Helper function to correctly set up the prototype chain for subclasses.
[2087] Fix | Delete
// Similar to `goog.inherits`, but uses a hash of prototype properties and
[2088] Fix | Delete
// class properties to be extended.
[2089] Fix | Delete
var extend = function(protoProps, staticProps) {
[2090] Fix | Delete
var parent = this;
[2091] Fix | Delete
var child;
[2092] Fix | Delete
[2093] Fix | Delete
// The constructor function for the new subclass is either defined by you
[2094] Fix | Delete
// (the "constructor" property in your `extend` definition), or defaulted
[2095] Fix | Delete
// by us to simply call the parent constructor.
[2096] Fix | Delete
if (protoProps && _.has(protoProps, 'constructor')) {
[2097] Fix | Delete
child = protoProps.constructor;
[2098] Fix | Delete
} else {
[2099] Fix | Delete
child = function(){ return parent.apply(this, arguments); };
[2100] Fix | Delete
}
[2101] Fix | Delete
[2102] Fix | Delete
// Add static properties to the constructor function, if supplied.
[2103] Fix | Delete
_.extend(child, parent, staticProps);
[2104] Fix | Delete
[2105] Fix | Delete
// Set the prototype chain to inherit from `parent`, without calling
[2106] Fix | Delete
// `parent`'s constructor function and add the prototype properties.
[2107] Fix | Delete
child.prototype = _.create(parent.prototype, protoProps);
[2108] Fix | Delete
child.prototype.constructor = child;
[2109] Fix | Delete
[2110] Fix | Delete
// Set a convenience property in case the parent's prototype is needed
[2111] Fix | Delete
// later.
[2112] Fix | Delete
child.__super__ = parent.prototype;
[2113] Fix | Delete
[2114] Fix | Delete
return child;
[2115] Fix | Delete
};
[2116] Fix | Delete
[2117] Fix | Delete
// Set up inheritance for the model, collection, router, view and history.
[2118] Fix | Delete
Model.extend = Collection.extend = Router.extend = View.extend = History.extend = extend;
[2119] Fix | Delete
[2120] Fix | Delete
// Throw an error when a URL is needed, and none is supplied.
[2121] Fix | Delete
var urlError = function() {
[2122] Fix | Delete
throw new Error('A "url" property or function must be specified');
[2123] Fix | Delete
};
[2124] Fix | Delete
[2125] Fix | Delete
// Wrap an optional error callback with a fallback error event.
[2126] Fix | Delete
var wrapError = function(model, options) {
[2127] Fix | Delete
var error = options.error;
[2128] Fix | Delete
options.error = function(resp) {
[2129] Fix | Delete
if (error) error.call(options.context, model, resp, options);
[2130] Fix | Delete
model.trigger('error', model, resp, options);
[2131] Fix | Delete
};
[2132] Fix | Delete
};
[2133] Fix | Delete
[2134] Fix | Delete
return Backbone;
[2135] Fix | Delete
});
[2136] Fix | Delete
[2137] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function