Permalink
Browse files

updated README of Notification proxies with pros and cons

  • Loading branch information...
1 parent 895ec72 commit e0110a430f965de5d0ac52be43dc488f4e819b3b @tvcutsem committed Jan 1, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 notification/README.md
@@ -17,7 +17,9 @@ Pre-trap generic signature:
Post-trap generic signature:
`function(target, result) -> void`
-API of notification proxy handlers:
+Notification Proxy Handler API
+==============================
+
```
onGetOwnPropertyDescriptor: function(target,name) // post-trap receives copy of the returned descriptor
onGetOwnPropertyNames: function(target) // post-trap receives copy of the returned array
@@ -41,7 +43,8 @@ onApply: function(target,thisArg,args)
onConstruct: function(target,args)
```
-== Why Notification Proxies? ==
+Why Notification Proxies?
+=========================
* They avoid the need for costly invariant enforcement checks
* They forward operations automatically (no need for traps to forward manually to the target object)

0 comments on commit e0110a4

Please sign in to comment.