Javascript e is undefined, can't perform continuous action on mousedown
===

This is the code snippit of eveything I think I need to describe this problem.  I am trying to have a continuous action go off when the mousedown is activated, but am getting the error:

> Uncaught ReferenceError: e is not defined 
> (anonymous function)

I'm pretty sure this error is stemming from the beginAction function where I have findClick(e) in quotes, somehow I don't think e is getting passed correctly here.


    function Cell(row, column) {
        this.row = row;
        this.column = column;
    	}
    
    function foo(bar) {
    	//do stuff here
    	gCanvas.addEventListener("mousedown", beginAction, false);
    	document.addEventListener("mouseup", endAction, false);
    	}
    
    function beginAction(e) {
    	findClick(e);
    	var findClick_timeout = setInterval("findClick(e)", 50);
    	}
    
    function endAction(e) {
    	if (typeof(findClick_timeout) != "undefined"){ clearTimeout(findClick_timeout);}
    	}
    	
    function getCursorPosition(e) {
        //finds the cell position here... works
    	var cell = new Cell(Math.floor(y/cellSize), Math.floor(x/cellSize));
        return cell;
    	}
    
    function findClick(e) {	
        var cell = getCursorPosition(e);
    	//do stuff with the cell!!!!!!
    	}