The topic is not very good, so please see the example below...
function bar(fn) {
fn.hi = function() {
alert('hi');
}
};
bar(
function() {
this.hi();
}
);
What I want is I want the have an alert popup in the above code, is it
possible?
Thanks.
function bar(fn) {
fn.hi = function() {
alert('hi');
}
};
bar(
function() {
this.hi();
}
);
What I want is I want the have an alert popup in the above code, is it
possible?
Thanks.
Comment