privatize
Marks object properties as private. JFYI this module requires ES5 features.
Example
var privatize = ; { thisvalue = 123; ; return ;} Aprototype = { thisvalue = value; } { return thisvalue; }; var a = ;console; // Worksa; // Error (Property is private)aset; // Error (Property is private)
Backbone example
var privatize = Model = Model; // Privatize all "write" methodsmoduleexports = ;