A series of commonly used extended functions for function operations.
Methods
-
SuperMap.Function.bind(func, object){function}
BaseTypes.js, line 364 -
Bounding the function to object. Easy to create the action scope of this.
Name Type Description func
function input the function.
object
Object Bounding the object to the inputted function(as this object of the inputted function).
Returns:
Type Description function The parameter of object as this object of the inputted function. -
SuperMap.Function.bindAsEventListener(func, object){function}
BaseTypes.js, line 384 -
Bounding the function to the object. Configuring and using the event object as the first parameter when calling the function.
Name Type Description func
function The function used to listening events.
object
Object Quoting this object.
Returns:
Type Description function -
SuperMap.Function.False(){boolean}
BaseTypes.js, line 397 -
This function only return to false. This function mainly to avoid anonymous function problem of the DOM event handle when lower than IE8.
Returns:
Type Description boolean Example
document.onclick = SuperMap.Function.False;
-
SuperMap.Function.True(){boolean}
BaseTypes.js, line 408 -
This function only return to true. This function mainly to avoid anonymous function problem of the DOM event handle when lower than IE8.
Returns:
Type Description boolean Example
document.onclick = SuperMap.Function.True;
-
SuperMap.Function.Void(){undefined}
BaseTypes.js, line 419 -
Reusable function only return to "undefined".
Returns:
Type Description undefined