mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-29 22:35:46 +01:00
Add dom.jsm. And stuff.
This commit is contained in:
@@ -510,13 +510,13 @@ var File = Class("File", {
|
||||
/**
|
||||
* @property {string} The current platform's path separator.
|
||||
*/
|
||||
PATH_SEP: Class.memoize(function () {
|
||||
PATH_SEP: Class.Memoize(function () {
|
||||
let f = services.directory.get("CurProcD", Ci.nsIFile);
|
||||
f.append("foo");
|
||||
return f.path.substr(f.parent.path.length, 1);
|
||||
}),
|
||||
|
||||
pathSplit: Class.memoize(function () util.regexp("(?:/|" + util.regexp.escape(this.PATH_SEP) + ")", "g")),
|
||||
pathSplit: Class.Memoize(function () util.regexp("(?:/|" + util.regexp.escape(this.PATH_SEP) + ")", "g")),
|
||||
|
||||
DoesNotExist: function (path, error) ({
|
||||
path: path,
|
||||
|
||||
Reference in New Issue
Block a user