From 92b23673e60569b74ac48304579866c839008e1a Mon Sep 17 00:00:00 2001 From: stonelee Date: Fri, 1 Mar 2013 12:33:37 +0800 Subject: [PATCH] No ticket: Move property descriptor assignment to save a byte. Close gh-1188. --- src/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data.js b/src/data.js index dfd8555a0..585d78b20 100644 --- a/src/data.js +++ b/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