MCPcopy Index your code
hub / github.com/sql-js/sql.js / fire

Function fire

documentation/javascript/application.js:1866–1891  ·  view source on GitHub ↗
( data )

Source from the content-addressed store, hash-verified

1864 stack = !options.once && [],
1865 // Fire callbacks
1866 fire = function( data ) {
1867 memory = options.memory && data;
1868 fired = true;
1869 firingIndex = firingStart || 0;
1870 firingStart = 0;
1871 firingLength = list.length;
1872 firing = true;
1873 for ( ; list && firingIndex < firingLength; firingIndex++ ) {
1874 if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
1875 memory = false; // To prevent further calls using add
1876 break;
1877 }
1878 }
1879 firing = false;
1880 if ( list ) {
1881 if ( stack ) {
1882 if ( stack.length ) {
1883 fire( stack.shift() );
1884 }
1885 } else if ( memory ) {
1886 list = [];
1887 } else {
1888 self.disable();
1889 }
1890 }
1891 },
1892 // Actual Callbacks object
1893 self = {
1894 // Add a callback or a collection of callbacks to the list

Callers 1

application.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…