Commit Graph

3608 Commits (1.7/callbacks)

Author SHA1 Message Date
jaubourg a745ac8c03 Merge branch '1.7/callbacks' of github.com:jquery/jquery into 1.7/callbacks
Conflicts:
	src/callbacks.js
	test/index.html
	test/unit/callbacks.js
2011-05-26 18:56:38 +01:00
jaubourg 9d0b361458 Fixes #9104 again. 2011-05-26 18:50:33 +01:00
jaubourg 950da8ae7f Added queue flag to $.Callbacks. Unit tests added (more to come). 2011-05-26 18:44:22 +01:00
jaubourg 0c9c9fb3cf Renames $.Channel as $.Topic to be on par with usual terminology of existing pub/sub implementations. 2011-05-26 18:44:21 +01:00
jaubourg b136d9cc7a jQuery.subscribe now returns a handle that can be passed to jQuery.unsubscribe to... well... unsubscribe. Unit test amended. 2011-05-26 18:44:18 +01:00
jaubourg 13c330a0f8 $.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. 2011-05-26 18:44:17 +01:00
jaubourg 1f084d024d Shortens slice expression in channel helpers as per rwaldron's suggestion. 2011-05-26 18:44:16 +01:00
jaubourg 57634a2c15 Adds publish/subscribe channels. Unit tests added. 2011-05-26 18:44:14 +01:00
jaubourg 4f3f0e1d4e Fixes repeatable callbacks list with memory disabling. Unit tests for Deferreds updated. 2011-05-26 18:44:12 +01:00
jaubourg a3a657cb2c Add Deferred.progress() unit tests and fixes some progress related typos and bugs. 2011-05-26 18:44:10 +01:00
jaubourg 05ae8f37b8 Makes sure repeatable lists with memory are properly locked. 2011-05-26 18:44:08 +01:00
jaubourg ebb39c2774 Ensures a list with memory will not called further callbacks before the next fire/fireWith is in stopOnFalse mode and a callback returned false. Unit tests added. 2011-05-26 18:44:06 +01:00
jaubourg 8dcf7ec1ce Adds addAfterFire flag. Unit tests updated with addAfterFire cases and also for when a callback returns false. 2011-05-26 18:44:05 +01:00
jaubourg 946a9204a1 Adds disabled and locked. Simplifies logic in fireWith. 2011-05-26 18:44:03 +01:00
jaubourg 3a6b759d3c Removes definition of createList and use jQuery.Callbacks directly to make things a bit less obfuscated. 2011-05-26 18:44:02 +01:00
jaubourg 198290a9a7 Simplifies how removal when firing is handled. Removes exception handling (lets the list deadlock). Makes sure no external code can fire the list from a given index (only possible internally). 2011-05-26 18:44:00 +01:00
jaubourg 03c4fe9da9 Fixes for bugs found thanks to unit tests. 2011-05-26 18:43:59 +01:00
jaubourg 142ae3e08a First bunch of unit tests for jQuery.Callbacks. 2011-05-26 18:43:58 +01:00
jaubourg 5ee68d6b13 Added stopOnFalse method description in comments and reformatted then in the process. 2011-05-26 18:43:56 +01:00
jaubourg a31195fd5a Replaces jQuery._Deferred with the much more flexible (and public) jQuery.Callbacks. Hopefully, jQuery.Callbacks can be used as a base for all callback lists needs in jQuery. Also adds progress callbacks to Deferreds (handled in jQuery.when too). Needs more unit tests. 2011-05-26 18:43:55 +01:00
timmywil 9d4033d629 Add test for appending an xml element to another. Supplements #9370. 2011-05-25 20:48:59 -04:00
timmywil bdce86dc2e Move window/document test to dimensions for consistency 2011-05-25 19:59:29 -04:00
timmywil edb2286544 Return null for outer/inner width/height calls on window/document. Fixes #7557. 2011-05-25 19:49:50 -04:00
timmywil 1d1cb582c0 elem.getElementsByTagName calls the function in IE6/7. Fixes #9370. 2011-05-25 19:35:52 -04:00
Scott Hughes 287156197f Landing pull request 389. Null elements in clone to avoid memory leak in IE. Fixes #9341.
More Details:
 - https://github.com/jquery/jquery/pull/389
 - http://bugs.jquery.com/ticket/9341
2011-05-25 15:18:13 -04:00
rwldrn 408c98fb4b Landing pull request 383. Relocating jQuery.camelCase to core; Fixes #9368.
More Details:
 - https://github.com/jquery/jquery/pull/383
 - http://bugs.jquery.com/ticket/9368
2011-05-25 15:10:49 -04:00
timmywil b8fc9d14a1 detachEvent is unnecessary since we're nulling div. Fixes #8873. 2011-05-25 15:08:37 -04:00
timmywil 657b197c19 Null created elements in support to avoid leaks in IE. Tested IE6-8. Leaks are contained to the byte. Fixes #9294. 2011-05-25 14:30:46 -04:00
timmywil a5396bde70 Attach background data to divs as well 2011-05-25 14:01:33 -04:00
timmywil e5457a5a1f Remove unnecessary background setting in support now that we have the div reversion. Test added. 2011-05-25 13:58:05 -04:00
jaubourg 3e7c04ec94 Renames $.Channel as $.Topic to be on par with usual terminology of existing pub/sub implementations. 2011-05-24 21:37:38 +02:00
jaubourg 55df216125 jQuery.subscribe now returns a handle that can be passed to jQuery.unsubscribe to... well... unsubscribe. Unit test amended. 2011-05-24 21:18:08 +02:00
jaubourg 4dce543ee6 $.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. 2011-05-24 21:16:51 +02:00
jaubourg 8c39fc855e Shortens slice expression in channel helpers as per rwaldron's suggestion. 2011-05-24 17:27:05 +02:00
jaubourg 96b0089c9c Adds publish/subscribe channels. Unit tests added. 2011-05-24 01:59:00 +02:00
jaubourg 9edc3d4f39 Fixes repeatable callbacks list with memory disabling. Unit tests for Deferreds updated. 2011-05-24 01:03:30 +02:00
jaubourg 1ed70e056d Merge branch 'master' of github.com:jquery/jquery into 1.7/callbacks
Conflicts:
	test/index.html
2011-05-24 00:45:37 +02:00
Mathias Bynens b43910a496 Landing pull request 352. Slightly improved defaultDisplay() and Throbber of Doom. Fixes #8994.
More Details:
 - https://github.com/jquery/jquery/pull/352
 - http://bugs.jquery.com/ticket/8994
2011-05-20 11:22:52 -04:00
rwldrn f82b9dddc4 Landing pull request 382. Adds support for number values (meter,progress); Fixes #9319.
More Details:
 - https://github.com/jquery/jquery/pull/382
 - http://bugs.jquery.com/ticket/9319
2011-05-20 11:03:33 -04:00
timmywil a1545b5079 Unnecessary var removed. 2011-05-18 11:59:21 -04:00
timmywil 25118e22a2 Handle unset value attributes consistently depending on property existence. Supplements #9328. 2011-05-18 11:46:22 -04:00
timmywil ba90af0dc5 Make the value hook less obtrusive for elements which do not inherently have a value property. Fixes #9328. 2011-05-18 11:29:25 -04:00
timmywil 7d3ba9f89e Switched title attribute to getAttributeNode for IE6/7. Fixes #9329. 2011-05-18 11:05:20 -04:00
Rick Waldron c17f589ec9 Landing pull request 377. Check custom data != null(undefined), allows zero; Fixes #9285.
More Details:
 - https://github.com/jquery/jquery/pull/377
 - http://bugs.jquery.com/ticket/9285
2011-05-16 10:38:36 -04:00
timmywil a5cf257a8a Use getAttributeNode for ^on attributes in IE6/7 to avoid anonymous function wrapper. Fixes #9298. 2011-05-16 10:17:50 -04:00
timmywil 6171e0a923 Retrieve the class attribute on a form in IE6/7. Fixes 9286. 2011-05-14 12:07:40 -04:00
timmywil cf702496ee Removing unnecessary argument type check for boolean hook 2011-05-13 13:47:44 -04:00
timmywil bc82ff0ff9 Make sure setting boolean attributes to the same name sets the property to a boolean type 2011-05-13 13:39:38 -04:00
timmywil 6f676e692d Use prop to retrieve boolean properties (so the selected hook will be used) 2011-05-13 13:33:43 -04:00
Rick Waldron ec829431fe Landing pull request 365. jQuery.buildFragment, ensure doc is a document; Fixes #8950.
More Details:
 - https://github.com/jquery/jquery/pull/365
 - http://bugs.jquery.com/ticket/8950
2011-05-13 12:26:17 -04:00