]> source.dussan.org Git - jquery.git/log
jquery.git
11 years agoFix #13499: selector with leading ID matching only a name
Richard Gibson [Sat, 23 Feb 2013 02:29:38 +0000 (21:29 -0500)]
Fix #13499: selector with leading ID matching only a name
(cherry picked from commit 5c4ab97a64c162503ac200bc7cea7f3e5725984d)

11 years agoNo ticket: Revise unit tests in anticipation of Sizzle-free builds
Richard Gibson [Tue, 19 Feb 2013 04:52:29 +0000 (23:52 -0500)]
No ticket: Revise unit tests in anticipation of Sizzle-free builds

11 years agoNo ticket: Reduce size in anticipation of Sizzle-free builds
Richard Gibson [Fri, 22 Feb 2013 21:33:52 +0000 (16:33 -0500)]
No ticket: Reduce size in anticipation of Sizzle-free builds
(cherry picked from commit dbf3056b250bbc279fa947031181f9e25a40bacf)

11 years agoFixes typos in core.js and css.js. Closes gh-1175
Pascal Borreli [Thu, 21 Feb 2013 17:00:51 +0000 (12:00 -0500)]
Fixes typos in core.js and css.js. Closes gh-1175

11 years agoUpdated readme to have more info. Closes gh-1177
Karl Sieburg [Thu, 21 Feb 2013 16:59:13 +0000 (11:59 -0500)]
Updated readme to have more info. Closes gh-1177

11 years agoAdds module to jshintrc
Rick Waldron [Thu, 21 Feb 2013 14:56:20 +0000 (09:56 -0500)]
Adds module to jshintrc

11 years agoSupport node-like module loaders. Closes gh-1103
isaacs [Thu, 21 Feb 2013 02:30:42 +0000 (21:30 -0500)]
Support node-like module loaders. Closes gh-1103

11 years agoNo ticket: Update Sizzle
Richard Gibson [Mon, 18 Feb 2013 04:12:44 +0000 (23:12 -0500)]
No ticket: Update Sizzle

11 years agoRefactor: Data.prototype.access. Thanks to @RubyLouvre and @gibson042. Closes #1167
Rick Waldron [Wed, 13 Feb 2013 17:14:20 +0000 (12:14 -0500)]
Refactor: Data.prototype.access. Thanks to @RubyLouvre and @gibson042. Closes #1167

11 years agoFix #13265 #13332: traversing methods with text nodes. Close gh-1145.
Richard Gibson [Sun, 27 Jan 2013 18:24:50 +0000 (13:24 -0500)]
Fix #13265 #13332: traversing methods with text nodes. Close gh-1145.

11 years agoOptimized Data rewrite
Rick Waldron [Mon, 11 Feb 2013 17:39:44 +0000 (12:39 -0500)]
Optimized Data rewrite

11 years agoFix #13401: replaceWith(""). Close gh-1163.
Mark Raddatz [Thu, 7 Feb 2013 21:43:25 +0000 (05:43 +0800)]
Fix #13401: replaceWith(""). Close gh-1163.

11 years agoFix 363299ac failures: protect Safari 5.1 from CSP
Richard Gibson [Fri, 8 Feb 2013 04:43:21 +0000 (23:43 -0500)]
Fix 363299ac failures: protect Safari 5.1 from CSP

11 years agoFix 363299ac failures
Richard Gibson [Thu, 7 Feb 2013 22:03:04 +0000 (17:03 -0500)]
Fix 363299ac failures

11 years agoRef #13316: Sync all documents on full vs. minified source. Close gh-1147.
Richard Gibson [Mon, 28 Jan 2013 04:34:38 +0000 (23:34 -0500)]
Ref #13316: Sync all documents on full vs. minified source. Close gh-1147.

11 years agoFix #13310. Get the right display value for disconnected nodes. Close gh-1156.
Oleg [Fri, 1 Feb 2013 13:22:08 +0000 (17:22 +0400)]
Fix #13310. Get the right display value for disconnected nodes. Close gh-1156.

11 years agoFix version; we are not at 2.0.0 yet!
Dave Methvin [Mon, 4 Feb 2013 15:12:14 +0000 (10:12 -0500)]
Fix version; we are not at 2.0.0 yet!

11 years agoRef fd43865c: restore correct logic
Richard Gibson [Mon, 4 Feb 2013 14:35:29 +0000 (09:35 -0500)]
Ref fd43865c: restore correct logic

11 years agoMatch the codebase standard, .split(" ") => .match( core_rnotwhite ) || []… no matter...
Rick Waldron [Sun, 3 Feb 2013 23:09:49 +0000 (18:09 -0500)]
Match the codebase standard, .split(" ") => .match( core_rnotwhite ) || []… no matter how awful it is >:|

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
11 years agoStandardize on a.indexOf(b) === -1, per @gibson042 review notes
Rick Waldron [Sun, 3 Feb 2013 23:04:53 +0000 (18:04 -0500)]
Standardize on a.indexOf(b) === -1, per @gibson042 review notes

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
11 years agoAvoid potential for breakage if test suite is run in a frame
Rick Waldron [Sun, 3 Feb 2013 22:58:07 +0000 (17:58 -0500)]
Avoid potential for breakage if test suite is run in a frame

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
11 years agoReduce hasData per @gibson042 review notes.
Rick Waldron [Sun, 3 Feb 2013 22:55:28 +0000 (17:55 -0500)]
Reduce hasData per @gibson042 review notes.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
11 years agoReduce Data.prototype.add by using the returned length value of this.owners.push...
Rick Waldron [Sun, 3 Feb 2013 20:31:23 +0000 (15:31 -0500)]
Reduce Data.prototype.add by using the returned length value of this.owners.push(owner)

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
11 years ago2.0: Rewrite data.js (Incl. event, manipulation, tests)
Rick Waldron [Sun, 3 Feb 2013 20:27:55 +0000 (15:27 -0500)]
2.0: Rewrite data.js (Incl. event, manipulation, tests)

11 years agoAdds test for jQuery.extend deep copy with array, followed by object. Refutes and...
Rick Waldron [Sun, 3 Feb 2013 17:51:54 +0000 (12:51 -0500)]
Adds test for jQuery.extend deep copy with array, followed by object. Refutes and Closes #1154

11 years agoUpgrade QUnit: Welcome to the present!
Richard Gibson [Sun, 3 Feb 2013 17:26:56 +0000 (12:26 -0500)]
Upgrade QUnit: Welcome to the present!

11 years agoUpdate Sizzle: detached node sorting in Webkit. Fixes #13331.
Timmy Willison [Fri, 1 Feb 2013 23:06:02 +0000 (18:06 -0500)]
Update Sizzle: detached node sorting in Webkit. Fixes #13331.

11 years agoFix #13335. Remove "use strict".
Dave Methvin [Fri, 1 Feb 2013 22:17:39 +0000 (17:17 -0500)]
Fix #13335. Remove "use strict".

11 years agoAdding @andrewplummer to AUTHORS.txt
Corey Frang [Thu, 31 Jan 2013 18:13:50 +0000 (12:13 -0600)]
Adding @andrewplummer to AUTHORS.txt

11 years agoevent: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153
Andrew Plummer [Thu, 31 Jan 2013 18:01:34 +0000 (12:01 -0600)]
event: Stricter type checking in trigger - Fixes #13360 - Closes gh-1153

Squashed commit of the following:

commit 5935a362c75ecef04d5ec9775cbcaf2165921e8d
Author: Andrew Plummer <plummer.andrew@gmail.com>
Date:   Fri Feb 1 02:40:42 2013 +0900

    Using "hasOwnProperty" to check for direct properties "type" and
    "namespace" on events before triggering.
(cherry picked from commit f005af54e4983658e3ae504111885921c4dca383)

11 years agoMagic fixing for previous commit
Timmy Willison [Thu, 31 Jan 2013 01:48:09 +0000 (20:48 -0500)]
Magic fixing for previous commit

11 years agoRevert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406.
Timmy Willison [Thu, 31 Jan 2013 01:05:39 +0000 (20:05 -0500)]
Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406.

11 years agoMinor updates. All parameters of an internal function are for internal use only.
Timmy Willison [Sat, 26 Jan 2013 01:44:55 +0000 (20:44 -0500)]
Minor updates. All parameters of an internal function are for internal use only.

11 years agoFix #13349. No need to sort simple .find() cases.
Dave Methvin [Wed, 30 Jan 2013 01:48:48 +0000 (20:48 -0500)]
Fix #13349. No need to sort simple .find() cases.

11 years agoFix comment about Safari shortfalls.
Dave Methvin [Tue, 29 Jan 2013 21:56:32 +0000 (16:56 -0500)]
Fix comment about Safari shortfalls.

11 years agoRevert "Fix #13291, no longer need the functionish-regex guard."
Dave Methvin [Tue, 29 Jan 2013 18:03:45 +0000 (13:03 -0500)]
Revert "Fix #13291, no longer need the functionish-regex guard."

Turns out this is still needed by Safari 5.1, which we're still supporting.

This reverts commit c4b1da40075532e4f14821b1519ae0ef6665bf1e.

11 years agoUpdate author list.
Dave Methvin [Sun, 27 Jan 2013 18:53:47 +0000 (13:53 -0500)]
Update author list.

11 years agoFix #13150, .has() w/o args checks for any callbacks. Close gh-1111.
adamcoulombe [Thu, 3 Jan 2013 22:05:00 +0000 (17:05 -0500)]
Fix #13150, .has() w/o args checks for any callbacks. Close gh-1111.

11 years agoFix #13315 for IE9: compare typeof xmlNode.method to var instead of literal "undefine... 1144/head
Richard Gibson [Thu, 24 Jan 2013 04:25:29 +0000 (23:25 -0500)]
Fix #13315 for IE9: compare typeof xmlNode.method to var instead of literal "undefined" for safer uglification
(cherry picked from commit ec9b38a34fb9bd81d1903cf12b69466f699abca5)

11 years agoFix #12656. Make event shorthands excludable.
Dave Methvin [Sun, 27 Jan 2013 04:48:59 +0000 (23:48 -0500)]
Fix #12656. Make event shorthands excludable.

11 years agoFix #12846. Restore overflow when animation is stopped.
Dave Methvin [Sun, 27 Jan 2013 03:02:15 +0000 (22:02 -0500)]
Fix #12846. Restore overflow when animation is stopped.

11 years agoChoose a lovely set of matching grunt dependencies.
Dave Methvin [Sun, 27 Jan 2013 01:55:21 +0000 (20:55 -0500)]
Choose a lovely set of matching grunt dependencies.

Stylish yet functional, this set of grunt plugins should provide hours of trouble-free operation until rc6 comes out.

11 years agoFix #13291, no longer need the functionish-regex guard.
Dave Methvin [Sun, 27 Jan 2013 01:31:37 +0000 (20:31 -0500)]
Fix #13291, no longer need the functionish-regex guard.

11 years agoFix build until next grunt rc, disable compare_size.
Dave Methvin [Sat, 26 Jan 2013 18:38:04 +0000 (13:38 -0500)]
Fix build until next grunt rc, disable compare_size.

11 years agoFix #13316. Use minified version in unit testing.
Dave Methvin [Sat, 26 Jan 2013 15:48:10 +0000 (10:48 -0500)]
Fix #13316. Use minified version in unit testing.

11 years agoFix #13274: Wrap sourceMap directive in multiline comments. Close gh-1143.
Richard Gibson [Wed, 23 Jan 2013 22:42:28 +0000 (17:42 -0500)]
Fix #13274: Wrap sourceMap directive in multiline comments. Close gh-1143.
(cherry picked from commit ac93559eb9f18fcaec95dfdc97358b1b85bfe234)

11 years agoFix #13282: QtWebKit (e.g., phantomjs) can only apply Arrays
Richard Gibson [Fri, 25 Jan 2013 04:45:44 +0000 (23:45 -0500)]
Fix #13282: QtWebKit (e.g., phantomjs) can only apply Arrays

11 years agoFix #13281: update Sizzle
Richard Gibson [Fri, 25 Jan 2013 04:11:47 +0000 (23:11 -0500)]
Fix #13281: update Sizzle

11 years agoDon't try and convert data for 204 No Content responses. Fixes #13292. Fixes #13261.
byroot [Thu, 24 Jan 2013 01:33:17 +0000 (02:33 +0100)]
Don't try and convert data for 204 No Content responses. Fixes #13292. Fixes #13261.

11 years agoIgnore file inputs when serializing forms. File input serialization is handled by...
Timmy Willison [Wed, 23 Jan 2013 17:23:46 +0000 (12:23 -0500)]
Ignore file inputs when serializing forms. File input serialization is handled by plugins. Fixes #13306.

11 years agoFix failing tests, add support for empty spans in Opera. Supplements #13132, #10406.
Timmy Willison [Mon, 21 Jan 2013 23:03:07 +0000 (18:03 -0500)]
Fix failing tests, add support for empty spans in Opera. Supplements #13132, #10406.

11 years agoTreat an element as hidden if either offsetWidth or offsetHeight is 0. Fixes #13132...
Timmy Willison [Mon, 21 Jan 2013 21:14:56 +0000 (16:14 -0500)]
Treat an element as hidden if either offsetWidth or offsetHeight is 0. Fixes #13132, #10406.

11 years agoRemoves unnecessary call to `.off()` as noted by @dcherman.
jaubourg [Mon, 21 Jan 2013 02:05:03 +0000 (03:05 +0100)]
Removes unnecessary call to `.off()` as noted by @dcherman.

11 years agoFixes #13276. Unit test is enough since the 2.x XHR transport already dismissed the...
jaubourg [Mon, 21 Jan 2013 01:53:50 +0000 (02:53 +0100)]
Fixes #13276. Unit test is enough since the 2.x XHR transport already dismissed the XML as parsed by the XHR instance.

11 years ago2.0: Reduce offset module. Close gh-1139.
Oleg [Tue, 15 Jan 2013 21:54:40 +0000 (01:54 +0400)]
2.0: Reduce offset module. Close gh-1139.

11 years agoFix #13232, fix jQuery.buildFragment for tables, close gh-1138.
Oleg [Wed, 16 Jan 2013 18:07:53 +0000 (22:07 +0400)]
Fix #13232, fix jQuery.buildFragment for tables, close gh-1138.

11 years agoConsistently clean up after .ready() handler, close gh-1135.
Oleg [Tue, 15 Jan 2013 14:45:21 +0000 (18:45 +0400)]
Consistently clean up after .ready() handler, close gh-1135.

11 years agoFurther script transport cleanup, close gh-1123.
jaubourg [Wed, 9 Jan 2013 10:04:03 +0000 (11:04 +0100)]
Further script transport cleanup, close gh-1123.

11 years agoReduced script transport
jaubourg [Wed, 9 Jan 2013 01:01:13 +0000 (02:01 +0100)]
Reduced script transport

11 years agoFix requirements and dependencies in README, close gh-1131.
Ryunosuke SATO [Mon, 14 Jan 2013 02:59:37 +0000 (11:59 +0900)]
Fix requirements and dependencies in README, close gh-1131.

11 years agoFix broken link in CONTRIBUTING.md, close gh-1132.
Ryunosuke SATO [Mon, 14 Jan 2013 05:45:13 +0000 (14:45 +0900)]
Fix broken link in CONTRIBUTING.md, close gh-1132.

11 years agoUpdate Sizzle: fixes native slice usage
Timmy Willison [Fri, 18 Jan 2013 15:48:39 +0000 (10:48 -0500)]
Update Sizzle: fixes native slice usage

11 years agoFix jQuery #13251: use slice instead of substring
Richard Gibson [Thu, 17 Jan 2013 22:00:29 +0000 (17:00 -0500)]
Fix jQuery #13251: use slice instead of substring
(cherry picked from commit 37eb6125c0fb0bec4e0d043bc78110b4f49f3aa6)

11 years agoRef cc324abf: use acceptData to determine when it is safe to add event handlers
Richard Gibson [Wed, 16 Jan 2013 19:36:24 +0000 (14:36 -0500)]
Ref cc324abf: use acceptData to determine when it is safe to add event handlers

11 years agoFix #8335: Avoid memory leak by never setting data on non-element non-document nodes...
danilsomsikov [Fri, 11 Jan 2013 15:04:50 +0000 (16:04 +0100)]
Fix #8335: Avoid memory leak by never setting data on non-element non-document nodes. Close gh-1127.

11 years agoFix #13233: re-allow .replaceWith of text nodes. Close gh-1137.
Richard Gibson [Wed, 16 Jan 2013 17:55:56 +0000 (12:55 -0500)]
Fix #13233: re-allow .replaceWith of text nodes. Close gh-1137.
(cherry picked from commit 6b1b0a26b4d485b4d9f334286efed5dfe33e3f3f)

11 years agoNo ticket: improve replaceWith testing
Richard Gibson [Wed, 16 Jan 2013 17:30:47 +0000 (12:30 -0500)]
No ticket: improve replaceWith testing
(cherry picked from commit 13468abaeb5488d547bc75d99bc3425ee891859e)

11 years agoFix #13182: update Sizzle
Richard Gibson [Wed, 16 Jan 2013 05:18:04 +0000 (00:18 -0500)]
Fix #13182: update Sizzle

11 years agoFix #13183: Wrong animation initial value calc. Ref gh-1136.
Mike Sherov [Wed, 16 Jan 2013 04:09:35 +0000 (23:09 -0500)]
Fix #13183: Wrong animation initial value calc. Ref gh-1136.

11 years agoUpdating the source version to 2.0.0pre
Dave Methvin [Tue, 15 Jan 2013 04:19:45 +0000 (23:19 -0500)]
Updating the source version to 2.0.0pre

11 years agoTagging the 2.0.0b1 release. 2.0.0b1
Dave Methvin [Tue, 15 Jan 2013 04:19:18 +0000 (23:19 -0500)]
Tagging the 2.0.0b1 release.

11 years agoLet version 1.9 claim jquery.js and jquery-latest.js files.
Dave Methvin [Tue, 15 Jan 2013 04:11:33 +0000 (23:11 -0500)]
Let version 1.9 claim jquery.js and jquery-latest.js files.

11 years agoSimplify release notes generator script.
Dave Methvin [Tue, 15 Jan 2013 02:58:09 +0000 (21:58 -0500)]
Simplify release notes generator script.

11 years agode486684 with moar guard for IE6
Richard Gibson [Mon, 14 Jan 2013 03:59:20 +0000 (22:59 -0500)]
de486684 with moar guard for IE6
(cherry picked from commit 6c29dd24e9786dfd61cdfdb5d21ffcb5694e25ea)

11 years agoAdd a comment
Oleg [Sun, 13 Jan 2013 19:47:29 +0000 (23:47 +0400)]
Add a comment

11 years agoFixes #13200 - innerHTML in buildFragment need end tags
Oleg [Sun, 13 Jan 2013 17:59:22 +0000 (21:59 +0400)]
Fixes #13200 - innerHTML in buildFragment need end tags

11 years agoFix #13203: delegated events with selector matching Object.prototype property
Richard Gibson [Mon, 14 Jan 2013 02:38:40 +0000 (21:38 -0500)]
Fix #13203: delegated events with selector matching Object.prototype property

11 years agoFix f860e0bd Firefox failures
Richard Gibson [Mon, 14 Jan 2013 01:37:14 +0000 (20:37 -0500)]
Fix f860e0bd Firefox failures
(cherry picked from commit 0a3a424e65f66414305bf6a34fc6fd93d3b61c62)

11 years agoFix #13180: don't delegate into SVG <use>
Richard Gibson [Mon, 14 Jan 2013 00:53:19 +0000 (19:53 -0500)]
Fix #13180: don't delegate into SVG <use>
(cherry picked from commits 36457cb6afc12d4a755cf93442a502783a669517..f860e0bd2f7dd228a14704d78ed5208cbe870d01)

11 years agoNo ticket: compress event.js
Richard Gibson [Sat, 12 Jan 2013 22:11:07 +0000 (17:11 -0500)]
No ticket: compress event.js
(cherry picked from commit 9cf812d7a28a08608eab30440102b00ebd3c2291)

11 years agoLeave out the web site, you know where to find us.
Dave Methvin [Fri, 11 Jan 2013 21:59:24 +0000 (16:59 -0500)]
Leave out the web site, you know where to find us.

11 years agoUpdate copyrights used in file headers.
Dave Methvin [Fri, 11 Jan 2013 21:08:09 +0000 (16:08 -0500)]
Update copyrights used in file headers.

11 years agoUpdate Sizzle
Richard Gibson [Fri, 11 Jan 2013 18:01:56 +0000 (13:01 -0500)]
Update Sizzle

11 years agoRevert grunt, grunt-contrib-jshint, and grunt-contrib-uglify versions used in build...
adam j. sontag [Fri, 11 Jan 2013 04:47:48 +0000 (23:47 -0500)]
Revert grunt, grunt-contrib-jshint, and grunt-contrib-uglify versions used in build until we can adapt Gruntfile to support grunt 0.4.0rc5 changes

11 years agoUpdate Sizzle
Richard Gibson [Thu, 10 Jan 2013 20:54:32 +0000 (15:54 -0500)]
Update Sizzle

11 years agoFix #12886. Fix map file reference in .min.js file.
Dave Methvin [Thu, 10 Jan 2013 15:35:50 +0000 (10:35 -0500)]
Fix #12886. Fix map file reference in .min.js file.

Cherry picked from e348b4060848b46a6c4376661c093e0f0a3ef9e7 .

11 years agoRef gh-1117: Use native push for size and performance
Richard Gibson [Wed, 9 Jan 2013 15:10:08 +0000 (10:10 -0500)]
Ref gh-1117: Use native push for size and performance

11 years agoRef gh-1117: Don't stop on a falsy value in buildFragment. Close gh-1124.
Oleg [Wed, 9 Jan 2013 09:23:34 +0000 (13:23 +0400)]
Ref gh-1117: Don't stop on a falsy value in buildFragment. Close gh-1124.

11 years agoPropagate context of returned deferred object in Deferred.then(). Fixes #13160.
nanto [Tue, 8 Jan 2013 15:27:13 +0000 (16:27 +0100)]
Propagate context of returned deferred object in Deferred.then(). Fixes #13160.

11 years agoAdjusts unit test regarding exception in injected scripts so that it accounts for...
jaubourg [Tue, 8 Jan 2013 13:04:00 +0000 (14:04 +0100)]
Adjusts unit test regarding exception in injected scripts so that it accounts for the exception being thrown in an event loop for remote scripts

11 years agoOpera 12.0 still implements an older version of the DOM so cloneNode cannot be called...
jaubourg [Tue, 8 Jan 2013 10:15:36 +0000 (11:15 +0100)]
Opera 12.0 still implements an older version of the DOM so cloneNode cannot be called without an argument

11 years agostrengthens and dries 304 unit tests
jaubourg [Tue, 8 Jan 2013 10:06:20 +0000 (11:06 +0100)]
strengthens and dries 304 unit tests

11 years agoAdding some more test coverage for .finish()
Corey Frang [Tue, 8 Jan 2013 09:33:01 +0000 (03:33 -0600)]
Adding some more test coverage for .finish()

11 years agoTweaks the logic in the 304-related unit tests so that they pass for versions of...
jaubourg [Tue, 8 Jan 2013 09:10:18 +0000 (10:10 +0100)]
Tweaks the logic in the 304-related unit tests so that they pass for versions of Opera that support manual 304 handling as well as for those that don't

11 years agoUse while loop instead of for
Oleg [Mon, 7 Jan 2013 21:59:01 +0000 (01:59 +0400)]
Use while loop instead of for

11 years agoAlways use core_push in jQuery.buildFragment
Oleg [Mon, 7 Jan 2013 20:16:36 +0000 (00:16 +0400)]
Always use core_push in jQuery.buildFragment

11 years agoChange test description
Oleg [Mon, 7 Jan 2013 19:21:42 +0000 (23:21 +0400)]
Change test description

11 years agoBring back jQuery.buildFragment and remove jQuery.clean
Oleg [Mon, 7 Jan 2013 14:38:21 +0000 (18:38 +0400)]
Bring back jQuery.buildFragment and remove jQuery.clean

11 years agoRef #8908. Update IE9 css clone fix. Close gh-1119.
Oleg [Tue, 8 Jan 2013 02:08:47 +0000 (02:08 +0000)]
Ref #8908. Update IE9 css clone fix. Close gh-1119.

11 years agoSimplify .wrapAll() and fix style. Close gh-1116.
Oleg [Mon, 7 Jan 2013 11:48:44 +0000 (15:48 +0400)]
Simplify .wrapAll() and fix style. Close gh-1116.