mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-17 07:35:44 +01:00
After some profiling, give all modules a common prototype.
This commit is contained in:
@@ -293,7 +293,7 @@ var Storage = Module("Storage", {
|
||||
* @param {boolean} checkPWD Whether to allow expansion relative to the
|
||||
* current directory. @default true
|
||||
*/
|
||||
var File = Class("File", {
|
||||
this.File = Class("File", {
|
||||
init: function (path, checkPWD) {
|
||||
let file = services.File();
|
||||
|
||||
@@ -621,6 +621,6 @@ var File = Class("File", {
|
||||
|
||||
endModule();
|
||||
|
||||
// catch(e){dump(e.fileName+":"+e.lineNumber+": "+e+"\n" + e.stack);}
|
||||
// catch(e){ dump(e + "\n" + (e.stack || Error().stack)); Components.utils.reportError(e) }
|
||||
|
||||
// vim: set fdm=marker sw=4 sts=4 et ft=javascript:
|
||||
|
||||
Reference in New Issue
Block a user