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; } Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.