You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by jo...@apache.org on 2008/10/10 02:32:07 UTC

svn commit: r703300 - /incubator/shindig/trunk/features/core/legacy.js

Author: johnh
Date: Thu Oct  9 17:32:07 2008
New Revision: 703300

URL: http://svn.apache.org/viewvc?rev=703300&view=rev
Log:
Adding _IG_GetImage to legacy shim API.


Modified:
    incubator/shindig/trunk/features/core/legacy.js

Modified: incubator/shindig/trunk/features/core/legacy.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/core/legacy.js?rev=703300&r1=703299&r2=703300&view=diff
==============================================================================
--- incubator/shindig/trunk/features/core/legacy.js (original)
+++ incubator/shindig/trunk/features/core/legacy.js Thu Oct  9 17:32:07 2008
@@ -85,6 +85,12 @@
 function _IG_GetImageUrl(url) {
   return gadgets.io.getProxyUrl(url);
 }
+function _IG_GetImage(url) {
+  var img = document.createElement('img');
+  img.src = _IG_GetCachedUrl(url);
+  return img;
+}
+
 
 function _IG_RegisterOnloadHandler(callback) {
   gadgets.util.registerOnLoadHandler(callback);