Hi everyone.
Has anyone ever experienced this.
some_class = function (params){
var self = this;
this.element.onmousedown = function(e){ return this.dosomething(self, e); }
some_class.prototype = {
dosomething : function(e) {
e=e||window.event;
e.xPos = some_value; // causes error e has no properties.
}
that is a rough idea of my code in a ext js file, and creating class in html file. i get the error: "e does not have any properties" not sure why? help pls?
much thanks
Has anyone ever experienced this.
some_class = function (params){
var self = this;
this.element.onmousedown = function(e){ return this.dosomething(self, e); }
some_class.prototype = {
dosomething : function(e) {
e=e||window.event;
e.xPos = some_value; // causes error e has no properties.
}
that is a rough idea of my code in a ext js file, and creating class in html file. i get the error: "e does not have any properties" not sure why? help pls?
much thanks