|
From: <ma...@us...> - 2011-01-22 20:48:35
|
Revision: 266
http://openautomation.svn.sourceforge.net/openautomation/?rev=266&view=rev
Author: mayerch
Date: 2011-01-22 20:48:26 +0000 (Sat, 22 Jan 2011)
Log Message:
-----------
remove debuging output
Modified Paths:
--------------
PyWireGate/trunk/logic_editor/gle/gle.block.js
PyWireGate/trunk/logic_editor/gle/gle.connection.js
PyWireGate/trunk/logic_editor/logicEditor.js
Modified: PyWireGate/trunk/logic_editor/gle/gle.block.js
===================================================================
--- PyWireGate/trunk/logic_editor/gle/gle.block.js 2011-01-22 15:20:19 UTC (rev 265)
+++ PyWireGate/trunk/logic_editor/gle/gle.block.js 2011-01-22 20:48:26 UTC (rev 266)
@@ -196,9 +196,9 @@
function editorDragMouseDown( event )
{
- console.log( 'eDMD', event );
+ //console.log( 'eDMD', event );
var classList = this.getAttribute('class').split(' ');
- console.log( 'eDMD', classList );
+ //console.log( 'eDMD', classList );
var type = 'move';
for( var i = 0; i < classList.length; i++ )
if( classList[i] != '' && classList[i] != 'selected' && classList[i] != 'block' ) type = classList[i];
@@ -364,7 +364,7 @@
function editorConnectionPointDrag( event )
{
- console.log( 'Block: eCPD', event );
+ //console.log( 'Block: eCPD', event );
var pn = event.data.portNumber;
var pt = event.data.portType;
var op = that.outPortPos( pn )[0];
@@ -390,7 +390,7 @@
function editorConnectionPointMouseUp( event )
{
- console.log( 'eCPMU' );
+ //console.log( 'eCPMU' );
$(document).unbind( 'mousemove', editorConnectionPointMouseMove );
$(document).unbind( 'mouseup' , editorConnectionPointMouseUp );
var target = event.data.con.lastTarget();
@@ -402,7 +402,7 @@
function editorConnectionPointOverPort( event )
{
- console.log( 'eCPOP', event.data.portType );
+ //console.log( 'eCPOP', event.data.portType );
if( event.data.portType !== undefined && event.data.portNumber !== undefined )
{
overPort = {
@@ -442,7 +442,7 @@
function editorConnectionPointOverPortOut( event )
{
- console.log( 'eCPOPO' );
+ //console.log( 'eCPOPO' );
overPort = false;
}
}
Modified: PyWireGate/trunk/logic_editor/gle/gle.connection.js
===================================================================
--- PyWireGate/trunk/logic_editor/gle/gle.connection.js 2011-01-22 15:20:19 UTC (rev 265)
+++ PyWireGate/trunk/logic_editor/gle/gle.connection.js 2011-01-22 20:48:26 UTC (rev 266)
@@ -102,10 +102,10 @@
function connectionDragMouseDown( event )
{
- console.log( 'cDMD', event );
+ //console.log( 'cDMD', event );
var classList = this.getAttribute('class').split(' ');
- console.log( 'cDMD', classList );
- console.log( 'cDMD', event.data.obj );
+ //console.log( 'cDMD', classList );
+ //console.log( 'cDMD', event.data.obj );
var path = paths[ event.data.obj[1] ].path;
var extend = event.data.obj[2] == path.length - 1
@@ -204,7 +204,7 @@
Math.abs( paths[0].path[1][0] - paths[0].path[2][0] ) < 1.0 &&
Math.abs( paths[0].path[1][1] - paths[0].path[2][1] ) < 1.0 )
{
- console.log( 'firstMove', paths[0].path.length );
+ //console.log( 'firstMove', paths[0].path.length );
lastFixed -= 2;
paths[0].path.shift(); // remove front
paths[0].path.shift(); // remove first identical
Modified: PyWireGate/trunk/logic_editor/logicEditor.js
===================================================================
--- PyWireGate/trunk/logic_editor/logicEditor.js 2011-01-22 15:20:19 UTC (rev 265)
+++ PyWireGate/trunk/logic_editor/logicEditor.js 2011-01-22 20:48:26 UTC (rev 266)
@@ -264,19 +264,23 @@
////////////////////////
// FIXME - delete it later, this are just helpers for debugging
-function _showEvents( target )
+function _showEvents( target, doLog )
{
var count = 0;
- jQuery.each($(target || '*'), function(j){
+ jQuery.each($(target || '*'), function(j,element){
//console.log( j, this );
var that = this;
var d = $(this).data();
if( d.events )
{
- console.log( count, this );
+ console.log( count, element );
jQuery.each( d.events, function( i, handler ){
//console.log( j, i, handler[0].handler.toString() );
console.log( count, i, handler[0].handler );
+ if( doLog )
+ {
+ $(element).bind( i, function(){} );
+ }
});
count++;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|