[qooxdoo-commit] SF.net SVN: qooxdoo:[16230] trunk/qooxdoo/framework/source/class/qx/util/ Resource
Brought to you by:
ecker,
martinwittemann
From: <wp...@us...> - 2008-08-28 14:53:20
|
Revision: 16230 http://qooxdoo.svn.sourceforge.net/qooxdoo/?rev=16230&view=rev Author: wpbasti Date: 2008-08-28 14:53:16 +0000 (Thu, 28 Aug 2008) Log Message: ----------- Added new method getImageFormat Modified Paths: -------------- trunk/qooxdoo/framework/source/class/qx/util/ResourceManager.js Modified: trunk/qooxdoo/framework/source/class/qx/util/ResourceManager.js =================================================================== --- trunk/qooxdoo/framework/source/class/qx/util/ResourceManager.js 2008-08-28 14:45:40 UTC (rev 16229) +++ trunk/qooxdoo/framework/source/class/qx/util/ResourceManager.js 2008-08-28 14:53:16 UTC (rev 16230) @@ -83,6 +83,21 @@ /** + * Returns the format of the given resource ID, + * when it is not a known image <code>null</code> + * is returned. + * + * @param id {String} Resource identifier + * @return {String} File format of the image + */ + getImageFormat : function(id) + { + var entry = this.__registry[id]; + return entry ? entry[2] : null; + }, + + + /** * Whether the given resource identifier is a image * with clipping information available. * This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |