Sometimes im unable to delete text with my backspace key or supr key, it just does nothing. I have to select the text in order to delete it.
It happens in some source files, and sometimes in one source file, im able to use backspace and supr in some parts of the document, and in others not.
I've wrote a simple exampel to demostrate this:
- Code: Select all
var myObject = function() {
var value = 0;
return {
increment: function(inc) {
value += typeof inc === 'number' ? inc : 1;
return value;
},
getValue: function() {
return value;
},
publicVar: "Im public"
};
};
var mclass = myObject();
for(var x = 0; x < 10; x++) {
console.log(mclass.increment());
}
I'm able to delete until the '=' sign of "var mclass = myObject();". Later, I can't do anything...
Thanks in advance, I'll be looking forward to receive feedback to solve this problem.