addLazyFunction method

ILazyFunction addLazyFunction(
  1. ILazyFunction function
)

Adds a lazy function function to the list of supported functions

function - The function to add. Returns the previous operator with that name, or null if there was none.

Implementation

ILazyFunction addLazyFunction(ILazyFunction function) {
  functions[function.getName()] = function;
  return function;
}