1/** 2 * 3 */ 4define([ 5], 6function( 7) { 8 return Cargo.o.model.site.extend({ 9 10 fetch : function(options) { 11 12 // NOTE: the force_admin_fetch happens on login and is set on login success 13 14 if ( options && options.force_admin_fetch !== true && $("script[data-set='Site']").html() ) { 15 this.set( $.parseJSON( $("script[data-set='Site']").html() ), options ); 16 17 } else { 18 Backbone.Model.prototype.fetch.apply(this, arguments); 19 } 20 }, 21 22 parse : function (response) { 23 return response; 24 }, 25 26 url : function() { 27 var c = Cargo.API.Config; // shorthand 28 var path = c.api_path + "/" + c.Version + "/adminsite/" + c.cargo_url; 29 return path; 30 } 31 32 }); 33 34});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.