Answer the question
In order to leave comments, you need to log in
Extending a js class via Jquery.extend?
what are the pitfalls of this approach?
var Handler = {
options: {},
doSome: function() {
},
init: function() {
}
}
var handler = $.extend(true,{},Handler);
handler.doSome = function() { переопределенная логика }
handler.init();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question