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 1, 2013
1 parent e0416f2 commit 92b23673e60569b74ac48304579866c839008e1a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/data.js
@@ -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.
You can’t perform that action at this time.