What was OpenSRF.js, is now DojoSRF.js - and there was much rejoicing from the Mac...
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 16 Apr 2008 01:37:05 +0000 (01:37 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 16 Apr 2008 01:37:05 +0000 (01:37 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1312 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/DojoSRF.js [new file with mode: 0644]

diff --git a/src/javascript/DojoSRF.js b/src/javascript/DojoSRF.js
new file mode 100644 (file)
index 0000000..6c2195c
--- /dev/null
@@ -0,0 +1,17 @@
+if(!dojo._hasResource['DojoSRF']){
+
+       dojo._hasResource['DojoSRF'] = true;
+       dojo.provide('DojoSRF');
+
+       // Note: this file was renamed from OpenSRF.js to DojoSRF.js,
+       // but still provides resources with the OpenSRF namespace
+       dojo.require('opensrf.opensrf', true);
+       dojo.require('opensrf.opensrf_xhr', true);
+
+       OpenSRF.session_cache = {};
+       OpenSRF.CachedClientSession = function ( app ) {
+               if (this.session_cache[app]) return this.session_cache[app];
+               this.session_cache[app] = new OpenSRF.ClientSession ( app );
+               return this.session_cache[app];
+       }
+}