Author: jbeard Date: Tue Jun 29 00:08:33 2010 New Revision: 958794 URL: http://svn.apache.org/viewvc?rev=958794&view=rev Log: Added minimal console API to prevent breakage on Firefox w/o firebug.
Modified: commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop.xhtml commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop2.xhtml Modified: commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop.xhtml URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop.xhtml?rev=958794&r1=958793&r2=958794&view=diff ============================================================================== --- commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop.xhtml (original) +++ commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop.xhtml Tue Jun 29 00:08:33 2010 @@ -111,6 +111,12 @@ using SCXML: <script><![CDATA[ var resultText; + //hook up minimal console api + if(typeof console == "undefined"){ + console = {}; + ["log","info","error","dirxml"].forEach(function(m){console[m] = console[m] || function(){} }); + } + require( { "baseUrl":"/" Modified: commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop2.xhtml URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop2.xhtml?rev=958794&r1=958793&r2=958794&view=diff ============================================================================== --- commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop2.xhtml (original) +++ commons/sandbox/gsoc/2010/scxml-js/branches/SCXML-141-148/demo/drag-and-drop/drag-and-drop2.xhtml Tue Jun 29 00:08:33 2010 @@ -43,6 +43,12 @@ own state. <script><![CDATA[ var resultText; + //hook up minimal console api + if(typeof console == "undefined"){ + console = {}; + ["log","info","error","dirxml"].forEach(function(m){console[m] = console[m] || function(){} }); + } + require( { "baseUrl":"/"