I'm trying to capture keystrokes inside my prototype function.
Here's my code:
function txtBox(input) // pass textbox
this.id = "myTextbox";
this.txt = input
txtBox.prototype.init = function()
var myTxt = new txtBox($(#txt)); // create object
Capturing works but the problem is that the `keyup` triggers "outside" my object, which means `this.id` returns "undefined" even though it _was_ defined.
Does anyone know how to keep consistency with this?