IT. Expert System.

JQUERY

callbacks.has()


Description

The callbacks.has() method determines whether a supplied callback is in a list.


v1.7

This method has the form:

callbacks.has(callback)
Parameter Description
callback Specifies the callback to search for

Return Value

This form returns a Boolean.

Examples

Use the callbacks.has() method to check if a callback list contains a specific callback:

// a sample logging function to be added to a callbacks list
var foo = function(value1, value2){
  console.log('Received:' + value1 + ',' + value2);
}

// a second function which will not be added to the list
var bar = function(value1, value2){
  console.log( 'foobar');
}

var callbacks = $.Callbacks();

// add the log method to the callbacks list
callbacks.add(foo);

// determine which callbacks are in the list
console.log(callbacks.has(foo)); // true
console.log(callbacks.has(bar)); // false


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 469 / 158778483. Delta: 0.02654 с