mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
+ 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:
parent
da01407274
commit
c402d1ebd7
@ -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 + '\'';
|
||||
|
Loading…
Reference in New Issue
Block a user