+ Updated Utils logging to deal gracefully with object properties you can't access (for permissions reasons, for instance)

+ Added storage.js… starting serialization
+ Disabled autoscroll on drag; the window should be locked down now
+ Fixed Aza's "cute little bug"; small tabs used to scoot up and left
This commit is contained in:
Ian Gilman 2010-04-22 14:26:57 -07:00
parent da01407274
commit c402d1ebd7

View File

@ -226,7 +226,7 @@ var Utils = {
// ___ Files
getInstallDirectory: function(id) {
var file = extensionManager.getInstallLocation(id).getItemFile(id, "install.rdf");
var file = extensionManager.getInstallLocation(id).getItemFile(id, "install.rdf");
return file.parent;
},
@ -327,7 +327,13 @@ var Utils = {
expandObject: function(obj) {
var s = obj + ' = {';
for(prop in obj) {
var value = obj[prop];
var value;
try {
value = obj[prop];
} catch(e) {
value = '[!!error retrieving property]';
}
s += prop + ': ';
if(typeof(value) == 'string')
s += '\'' + value + '\'';