Jump to content

Function Question


skaterdav85

Recommended Posts

You usually would want to use the first method if the function is going to be part of an object:

myObject = new Object();myObject.something = function() {  // Some code}

Though it could still be done the other way too:

function __something() {  // Some code}myObject = new Object();myObject.something = __something

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...