SP.SOD.executeOrDelayUntilEventNotified(func, eventName) Method

Applies to: SharePoint Foundation 2010

Executes the specified function if the specified event has occurred; otherwise, adds the function to the pending job queue.

SP.SOD.executeOrDelayUntilEventNotified(func, eventName);

Parameters

func

Type: Function

The function to execute.

eventName

Type: String

The name of the event.

Remarks

Call the SP.SOD.notifyEventAndExecuteWaitingJobs(eventName) Method method with eventName to execute any pending jobs waiting on the event.

Applies To

SP.SOD Class

See Also

Reference

SP.SOD Methods

SP Namespace

Other Resources

SP.SOD Properties