( data )
| 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…