Minimizing / Uglifying with Google Realtime API -
if code registers custom realtime type:
gapi.drive.realtime.custom.registertype(mytype, const.my_custom_type); // set collaborative fields: mytype.prototype.type = gapi.drive.realtime.custom.collaborativefield('type'); ... // set routine call on initialize: gapi.drive.realtime.custom.setinitializer(mytype, initializemytype);
...and initializes it:
function initializemytype() { this.type = 0; };
when code uglified / compressed / minimized etc, above gets turned this:
gapi.drive.realtime.custom.registertype(a, "my_type"); a.prototype.b = gapi.drive.realtime.custom.collaborativefield('type'); ... gapi.drive.realtime.custom.setinitializer(a, c); ... function c() {this.b = 0;};
...so prototype property 'type' known code "b", though collaborativefield still called 'type'.
my question is, matter? appears work, except when using realtime debugger console warnings asking if forgot register custom types. realtime debugger appears work normal, program far can tell. somehow changing definition / structure of realtime model, breaking other user different property names, or these property names used locally?
Comments
Post a Comment