dojo wrapper to opensrf JS libs
[OpenSRF.git] / src / javascript / OpenSRF.js
1 if(!dojo._hasResource['OpenSRF']){
2
3         dojo._hasResource['OpenSRF'] = true;
4         dojo.provide('OpenSRF');
5         dojo.require('opensrf.opensrf', true);
6         dojo.require('opensrf.opensrf_xhr', true);
7
8         OpenSRF.session_cache = {};
9         OpenSRF.CachedClientSession = function ( app ) {
10                 if (this.session_cache[app]) return this.session_cache[app];
11                 this.session_cache[app] = new OpenSRF.ClientSession ( app );
12                 return this.session_cache[app];
13         }
14 }