Commit 92b23673 authored by stonelee's avatar stonelee Committed by Richard Gibson

No ticket: Move property descriptor assignment to save a byte. Close gh-1188.

parent e0416f25
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment