Fix #5654 - roojspacker - get it working as a doc tool...
[roojs1] / docs / symbols / Function.json
diff --git a/docs/symbols/Function.json b/docs/symbols/Function.json
new file mode 100644 (file)
index 0000000..270ef75
--- /dev/null
@@ -0,0 +1,195 @@
+{
+  "name" : "Function",
+  "augments" : [
+  ],
+  "desc" : "These functions are available on every Function object (any JavaScript function).",
+  "isSingleton" : false,
+  "isStatic" : false,
+  "isBuiltin" : true,
+  "memberOf" : "Function",
+  "example" : "",
+  "deprecated" : "",
+  "since" : "",
+  "see" : "",
+  "params" : [
+  ],
+  "returns" : [
+  ],
+  "config" : [
+  ],
+  "methods" : [
+    {
+      "name" : "createDelegate",
+      "desc" : "Creates a delegate (callback) that sets the scope to obj.\nCall directly on any function. Example: <code>this.myFunction.createDelegate(this)</code>\nWill create a function that is automatically scoped to this.",
+      "isStatic" : false,
+      "isConstructor" : false,
+      "isPrivate" : false,
+      "memberOf" : "Function",
+      "example" : "",
+      "deprecated" : "",
+      "since" : "",
+      "see" : "",
+      "params" : [
+        {
+          "name" : "obj",
+          "type" : "Object",
+          "desc" : "(optional) The object for which the scope is set",
+          "isOptional" : false
+        },
+        {
+          "name" : "args",
+          "type" : "Array",
+          "desc" : "(optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)",
+          "isOptional" : false
+        },
+        {
+          "name" : "appendArgs",
+          "type" : "Boolean/Number",
+          "desc" : "(optional) if True args are appended to call args instead of overriding,\n                                            if a number the args are inserted at the specified position",
+          "isOptional" : false
+        }
+      ],
+      "returns" : [
+        {
+          "name" : "",
+          "type" : "Function",
+          "desc" : "The new function"
+        }
+      ]
+    },
+    {
+      "name" : "defer",
+      "desc" : "Calls this function after the number of millseconds specified.",
+      "isStatic" : false,
+      "isConstructor" : false,
+      "isPrivate" : false,
+      "memberOf" : "Function",
+      "example" : "",
+      "deprecated" : "",
+      "since" : "",
+      "see" : "",
+      "params" : [
+        {
+          "name" : "millis",
+          "type" : "Number",
+          "desc" : "The number of milliseconds for the setTimeout call (if 0 the function is executed immediately)",
+          "isOptional" : false
+        },
+        {
+          "name" : "obj",
+          "type" : "Object",
+          "desc" : "(optional) The object for which the scope is set",
+          "isOptional" : false
+        },
+        {
+          "name" : "args",
+          "type" : "Array",
+          "desc" : "(optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)",
+          "isOptional" : false
+        },
+        {
+          "name" : "appendArgs",
+          "type" : "Boolean/Number",
+          "desc" : "(optional) if True args are appended to call args instead of overriding,\n                                            if a number the args are inserted at the specified position",
+          "isOptional" : false
+        }
+      ],
+      "returns" : [
+        {
+          "name" : "",
+          "type" : "Number",
+          "desc" : "The timeout id that can be used with clearTimeout"
+        }
+      ]
+    },
+    {
+      "name" : "createSequence",
+      "desc" : "Create a combined function call sequence of the original function + the passed function.\nThe resulting function returns the results of the original function.\nThe passed fcn is called with the parameters of the original function",
+      "isStatic" : false,
+      "isConstructor" : false,
+      "isPrivate" : false,
+      "memberOf" : "Function",
+      "example" : "",
+      "deprecated" : "",
+      "since" : "",
+      "see" : "",
+      "params" : [
+        {
+          "name" : "fcn",
+          "type" : "Function",
+          "desc" : "The function to sequence",
+          "isOptional" : false
+        },
+        {
+          "name" : "scope",
+          "type" : "Object",
+          "desc" : "(optional) The scope of the passed fcn (Defaults to scope of original function or window)",
+          "isOptional" : false
+        }
+      ],
+      "returns" : [
+        {
+          "name" : "",
+          "type" : "Function",
+          "desc" : "The new function"
+        }
+      ]
+    },
+    {
+      "name" : "createInterceptor",
+      "desc" : "Creates an interceptor function. The passed fcn is called before the original one. If it returns false, the original one is not called.\nThe resulting function returns the results of the original function.\nThe passed fcn is called with the parameters of the original function.",
+      "isStatic" : false,
+      "isConstructor" : false,
+      "isPrivate" : false,
+      "memberOf" : "Function",
+      "example" : "",
+      "deprecated" : "",
+      "since" : "",
+      "see" : "",
+      "params" : [
+        {
+          "name" : "fcn",
+          "type" : "Function",
+          "desc" : "The function to call before the original",
+          "isOptional" : false
+        },
+        {
+          "name" : "scope",
+          "type" : "Object",
+          "desc" : "(optional) The scope of the passed fcn (Defaults to scope of original function or window)",
+          "isOptional" : false
+        }
+      ],
+      "returns" : [
+        {
+          "name" : "",
+          "type" : "Function",
+          "desc" : "The new function"
+        }
+      ]
+    },
+    {
+      "name" : "createCallback",
+      "desc" : "Creates a callback that passes arguments[0], arguments[1], arguments[2], ...\nCall directly on any function. Example: <code>myFunction.createCallback(myarg, myarg2)</code>\nWill create a function that is bound to those 2 args.",
+      "isStatic" : false,
+      "isConstructor" : false,
+      "isPrivate" : false,
+      "memberOf" : "Function",
+      "example" : "",
+      "deprecated" : "",
+      "since" : "",
+      "see" : "",
+      "params" : [
+      ],
+      "returns" : [
+        {
+          "name" : "",
+          "type" : "Function",
+          "desc" : "The new function"
+        }
+      ]
+    }
+  ],
+  "events" : [
+  ]
+}
\ No newline at end of file