1
0
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:
Kris Maglione
2011-08-22 01:45:41 -04:00
parent fbb6af43ed
commit 60c858b59b
21 changed files with 33 additions and 55 deletions

View File

@@ -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: