All snippets of the tag function |
|
1-3 of 3 Entries |
|
|
confirm (Bash::Function) |
Created by Marko Schulz at 2023-02-23 21:25:12 |
# *******************************************************
# This function ask for a defined text and wait for (y/n) answer.
# If no right answer was set, the function starte recusrivly again.
#
# @param $1 - The question text
# @return bool
#
functi... |
|
create_function (JavaScript::Snippets) |
Created by Marko Schulz at 2010-02-18 17:49:15 |
/**
* Create an anonymous (lambda-style) function.
*/
function create_function (args, code) {
try { // Original by: Johnny Mast (http://www.phpvrouwen.nl)
return Function.apply(null, args.split(',').concat(code));
} catch (e) {
return false;
... |
|
function_exists (JavaScript::Snippets) |
Created by Marko Schulz at 2010-02-18 17:38:46 |
/**
* Return TRUE if the given function has been defined.
*/
function function_exists (function_name) {
// Original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
if (typeof function_name == 'string'){
return (typeof this.window[func... |
|
1-3 of 3 Entries |
|
|