Protected properties using Name objects

Brandon Benvie brandon at brandonbenvie.com
Fri Jun 15 13:05:00 PDT 2012


The description of Object.protectProperty:

Object.protectProperty(object : Object, key : String) -> Name
Object.protectProperty(object : Object, key : String, protector : Name) ->
true
Object.protectProperty(object : Object, currentProtector : Name) -> true
Object.protectProperty(object : Object, currentProtector : Name,
newProtector : Name) -> true

["object", "key"] returns new Name to be used as protector
["object", "key", "protector"] sets protector to existing Name
["object", "currentProtector"] sets protected to false
["object", "currentProtector", "newProtector"] change protector to
newProtector
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120615/012ed55e/attachment.html>


More information about the es-discuss mailing list