$.Callbacks.remove now accepts multiple parameters (Unit test amended). Changed the variable name of the main object from "object" to "self" as per rwaldron's suggestions.

This commit is contained in:
jaubourg 2011-05-24 21:16:51 +02:00
parent 1f084d024d
commit 13c330a0f8
2 changed files with 35 additions and 30 deletions

View file

@ -98,12 +98,10 @@ jQuery.each( tests, function( flags, resultString ) {
// Basic binding, removing and firing
output = "X";
cblist = jQuery.Callbacks( flags );
cblist.add( outputA );
cblist.add( outputB );
cblist.add( outputC );
cblist.remove( outputB );
cblist.add( outputA, outputB, outputC );
cblist.remove( outputB, outputC );
cblist.fire();
strictEqual( output, "XAC", "Basic binding, removing and firing" );
strictEqual( output, "XA", "Basic binding, removing and firing" );
// Empty
output = "X";