1 if(!dojo._hasResource['DojoSRF']){
3 dojo._hasResource['DojoSRF'] = true;
4 dojo.provide('DojoSRF');
6 // Note: this file was renamed from OpenSRF.js to DojoSRF.js,
7 // but still provides resources with the OpenSRF namespace
8 dojo.require('opensrf.opensrf', true);
9 dojo.require('opensrf.opensrf_xhr', true);
11 OpenSRF.session_cache = {};
12 OpenSRF.CachedClientSession = function ( app ) {
13 if (this.session_cache[app]) return this.session_cache[app];
14 this.session_cache[app] = new OpenSRF.ClientSession ( app );
15 return this.session_cache[app];