mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
No ticket: Move property descriptor assignment to save a byte. Close gh-1188.
This commit is contained in:
parent
e0416f2548
commit
92b23673e6
@ -29,10 +29,10 @@ Data.prototype = {
|
|||||||
// If not, create one
|
// If not, create one
|
||||||
if ( !unlock ) {
|
if ( !unlock ) {
|
||||||
unlock = Data.uid++;
|
unlock = Data.uid++;
|
||||||
descriptor[ this.expando ] = { value: unlock };
|
|
||||||
|
|
||||||
// Secure it in a non-enumerable, non-writable property
|
// Secure it in a non-enumerable, non-writable property
|
||||||
try {
|
try {
|
||||||
|
descriptor[ this.expando ] = { value: unlock };
|
||||||
Object.defineProperties( owner, descriptor );
|
Object.defineProperties( owner, descriptor );
|
||||||
|
|
||||||
// Support: Android<4
|
// Support: Android<4
|
||||||
|
Loading…
Reference in New Issue
Block a user