Revision: 21556
http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=21556&view=rev
Author: fjakobs
Date: 2010-02-12 12:31:55 +0000 (Fri, 12 Feb 2010)
Log Message:
-----------
[BUG #2426] add missing getInstance method on qx.Part
Modified Paths:
--------------
trunk/qooxdoo/framework/source/class/qx/Part.js
Modified: trunk/qooxdoo/framework/source/class/qx/Part.js
===================================================================
--- trunk/qooxdoo/framework/source/class/qx/Part.js 2010-02-12 12:09:22 UTC (rev 21555)
+++ trunk/qooxdoo/framework/source/class/qx/Part.js 2010-02-12 12:31:55 UTC (rev 21556)
@@ -69,6 +69,20 @@
statics :
{
/**
+ * Get the default part loader instance
+ *
+ * @return {qx.Part} the default part loader
+ */
+ getInstance : function()
+ {
+ if (!this.$$instance) {
+ this.$$instance = new this(qx.$$loader);
+ }
+ return this.$$instance;
+ },
+
+
+ /**
* Loads one or more parts asynchronously. The callback is called after all
* parts and their dependencies are fully loaded. If the parts are already
* loaded the callback is called immediately.
@@ -78,13 +92,8 @@
* @param callback {Function} Function to execute on completion
* @param self {Object?window} Context to execute the given function in
*/
- require : function(partNames, callback, self)
- {
- if (!this.$$instance) {
- this.$$instance = new this(qx.$$loader);
- }
-
- this.$$instance.require(partNames, callback, self);
+ require : function(partNames, callback, self) {
+ this.getInstance().require(partNames, callback, self);
}
},
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|