Here is my issue:
I have 2 variable:
var func = function() {
$(dialog).dialog("close");
}
var m = "hello"
and I call a method
this.xyz(func , m)
Method xyz looks like
xyz : function(func, m) {
//there is an OK button on which I am calling click event
click: function() {
func();
}
}
Approach-1
Now inside xyz if I replace func(); with $(dialog).dialog(“close”); works perfect
Approach-2
but with func(); button click will not close the dialog box
I want to use the approach 2 but cant make it work
thnx
just pass the variable and it worked