You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2009/10/15 02:35:32 UTC

svn commit: r825354 - /incubator/shindig/trunk/features/src/main/javascript/features/caja/taming.js

Author: lindner
Date: Thu Oct 15 00:35:31 2009
New Revision: 825354

URL: http://svn.apache.org/viewvc?rev=825354&view=rev
Log:
SHINDIG-1185 | Patch from Mike Stay | Wrap console.log instead of directly exposing console

Modified:
    incubator/shindig/trunk/features/src/main/javascript/features/caja/taming.js

Modified: incubator/shindig/trunk/features/src/main/javascript/features/caja/taming.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/caja/taming.js?rev=825354&r1=825353&r2=825354&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/caja/taming.js (original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/caja/taming.js Thu Oct 15 00:35:31 2009
@@ -939,7 +939,9 @@
   ___.grantFunc(imports.outers, 'alert');
 
   if (console && console.log) {
-    imports.outers.console = console;
+    imports.outers.console = {
+      log: function(msg) { return console.log(msg); }
+    };
     ___.grantRead(imports.outers, 'console');
     ___.grantFunc(imports.outers.console, 'log');
   }