how can i call stopEvent within init?
testObj.prototype =
{
init: function(wrapper)
{
wrapper.onclick = function(e){
stopEvent(e); //getting error stopEvent not defined
};
},
stopEvent: function(e){
if(e.preventDefault)
e.preventDefault();
else
e.returnValue = false
}
}