[Opensrf-commits] r1312 - trunk/src/javascript

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Apr 15 22:15:16 EDT 2008


Author: dbs
Date: 2008-04-15 21:37:05 -0400 (Tue, 15 Apr 2008)
New Revision: 1312

Added:
   trunk/src/javascript/DojoSRF.js
Log:
What was OpenSRF.js, is now DojoSRF.js - and there was much rejoicing from the Mac-heads


Copied: trunk/src/javascript/DojoSRF.js (from rev 1311, trunk/src/javascript/OpenSRF.js)
===================================================================
--- trunk/src/javascript/DojoSRF.js	                        (rev 0)
+++ trunk/src/javascript/DojoSRF.js	2008-04-16 01:37:05 UTC (rev 1312)
@@ -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];
+	}
+}



More information about the opensrf-commits mailing list