|
From: <ma...@us...> - 2011-01-22 15:20:25
|
Revision: 265
http://openautomation.svn.sourceforge.net/openautomation/?rev=265&view=rev
Author: mayerch
Date: 2011-01-22 15:20:19 +0000 (Sat, 22 Jan 2011)
Log Message:
-----------
Added debug tool to show all bound events
Modified Paths:
--------------
PyWireGate/trunk/logic_editor/logicEditor.js
Modified: PyWireGate/trunk/logic_editor/logicEditor.js
===================================================================
--- PyWireGate/trunk/logic_editor/logicEditor.js 2011-01-22 14:45:58 UTC (rev 264)
+++ PyWireGate/trunk/logic_editor/logicEditor.js 2011-01-22 15:20:19 UTC (rev 265)
@@ -260,4 +260,25 @@
svg.viewBox.baseVal.width = x / factor;
svg.viewBox.baseVal.height = y / factor;
}
+}
+
+////////////////////////
+// FIXME - delete it later, this are just helpers for debugging
+function _showEvents( target )
+{
+ var count = 0;
+ jQuery.each($(target || '*'), function(j){
+ //console.log( j, this );
+ var that = this;
+ var d = $(this).data();
+ if( d.events )
+ {
+ console.log( count, this );
+ jQuery.each( d.events, function( i, handler ){
+ //console.log( j, i, handler[0].handler.toString() );
+ console.log( count, i, handler[0].handler );
+ });
+ count++;
+ }
+ });
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|