How can I get my javascript library to support multiple events with on?
Here is the code for my on function:
Q.fn.on=function(event, fn){
this[0]["on" + event] = fn;
};
Also how can my on function add events to multiple elements?
How can I get my javascript library to support multiple events with on?
Here is the code for my on function:
Q.fn.on=function(event, fn){
this[0]["on" + event] = fn;
};
Also how can my on function add events to multiple elements?
برچسب:
نویسنده: استخدام کار