1 message in com.googlegroups.google-gadgets-apiPrefs object was modified - ModuleID ...
FromSent OnAttachments
dimon.minko25 Oct 2007 02:38 
Subject:Prefs object was modified - ModuleID is stored in another field
From:dimon.minko (Dimo@gmail.com)
Date:10/25/2007 02:38:33 AM
List:com.googlegroups.google-gadgets-api

Hi All,

Early, to get Module Id from Prefs object I used something like this:

var prefs = new Prefs(__MODULE_ID__); .... ....

//if i need to get module id I can get it from my prefs object, like this: var moduleId = prefs.Z; //field Z contains module id;

Today, I found out my app didn't work becase now moduleId I can get using prefs.U field.

Sure, I refactored my code to avoid this problem at all. I don't use prefs to get module id passed in constructor. Now, I only use substituted value directly.

But it's still interesting, how can i get module id from Prefs object directly?

Thanks, Dmitry