Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(72)

Issue 9857043: Clean up tame() and untame(). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by kpreid2
Modified:
12 years, 10 months ago
Reviewers:
ihab.awad
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

* Don't has() the WeakMap, just get() and check the result, which cannot be falsy since WeakMaps contain no primitives. Hopefully faster. * Remove redundant primitive-value test; r5149 / issue 1571 introduced a fully general test without removing the existing one. @r5427

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -14 lines) Patch
M src/com/google/caja/plugin/taming-membrane.js View 3 chunks +8 lines, -14 lines 0 comments Download

Messages

Total messages: 2
kpreid2
12 years, 10 months ago (2013-05-29 16:43:55 UTC) #1
ihab.awad
12 years, 10 months ago (2013-05-29 17:10:57 UTC) #2
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b