Open GoogleCodeExporter opened 8 years ago
I have made a similar change to the plugin for our internal use. Basically the
modification looks like this:
at line 60:
encoding: 'UTF-8',
object: window,
callback: null,
at line 255:
success: function(data, status) {
parseData(data, settings.mode, settings.object);
}
at line 262:
/** Parse .properties files */
function parseData(data, mode, obj) {
at line 300:
value = value.replace( /"/g, '\\"' ); // escape quotation mark (")
o = obj;
name = 'o.' + name;
// make sure namespaced key exists (eg, 'some.key')
Then you can pass the object you wish to attach the values to into the plugin
through the options.
Original comment by Ross...@gmail.com
on 7 Nov 2011 at 10:31
Imo a namespace would be a better idea, because you don't have to ensure it
exists. When you want to use 'msg.a' as a base object like you propose, you
would have to create msg and msg.a by yourself. When using a base namespace, it
is all done automagically for you.
Original comment by d.de...@gmail.com
on 8 Nov 2011 at 7:29
Patch containing the namespace change.
Original comment by d.de...@gmail.com
on 8 Nov 2011 at 7:37
Attachments:
Original issue reported on code.google.com by
d.de...@gmail.com
on 7 Oct 2011 at 9:18