Skip to content
Permalink
Browse files
No ticket: Move property descriptor assignment to save a byte. Close g…
  • Loading branch information
stonelee authored and gibson042 committed Mar 14, 2013
1 parent e0416f2 commit 92b2367
Showing 1 changed file with 1 addition and 1 deletion.
@@ -29,10 +29,10 @@ Data.prototype = {
// If not, create one
if ( !unlock ) {
unlock = Data.uid++;
descriptor[ this.expando ] = { value: unlock };

// Secure it in a non-enumerable, non-writable property
try {
descriptor[ this.expando ] = { value: unlock };
Object.defineProperties( owner, descriptor );

// Support: Android<4

0 comments on commit 92b2367

Please sign in to comment.