Displaying 1 result from an estimated 1 matches for "anothervar".
Did you mean:
another_var
2005 Aug 10
0
questions about extend
...a class and then call a function from
the super class.
var SuperClass = Class.create();
SuperClass.prototype = {
initialize: function(somevar){
this.somevar = somevar;
}
}
var SubClass = Class.create();
SubClass.prototype = (new SuperClass()).extend({
initialize: function(somevar, anothervar){
super.initialize(somevar); //extend super class'' function here
this.anothervar = anothervar;
}
});
--
Ryan P. Miller
ryan@numinalabs.com