unemployment Posted April 15, 2011 Share Posted April 15, 2011 What does this code mean? I don't understand it. function onclose(func){ this.onclose_func = func; } Link to comment https://forums.phpfreaks.com/topic/233811-what-does-this-mean/ Share on other sites More sharing options...
Omirion Posted April 15, 2011 Share Posted April 15, 2011 It seams like a code to attach dynamic methods to functions, or to assign a function to and onclose event. Please post the entire code Link to comment https://forums.phpfreaks.com/topic/233811-what-does-this-mean/#findComment-1202154 Share on other sites More sharing options...
Adam Posted April 16, 2011 Share Posted April 16, 2011 Takes a function as a parameter and assigns it to the object's "onclose_func" property. There is very little more we can tell you about this based on that, as there is no standard "onclose_func" property. This code is completely custom written... As Omirion says, show the rest of it. Link to comment https://forums.phpfreaks.com/topic/233811-what-does-this-mean/#findComment-1202278 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.