1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-22 06:44:12 +01:00

Move smooth-scroll plugin to the core.

This commit is contained in:
Kris Maglione
2011-09-28 20:10:23 -04:00
parent dc8004426f
commit c9b72a9607
5 changed files with 97 additions and 9 deletions

View File

@@ -329,7 +329,11 @@ var File = Class("File", {
/**
* @property {nsIFileURL} Returns the nsIFileURL object for this file.
*/
get URI() services.io.newFileURI(this).QueryInterface(Ci.nsIFileURL),
URI: Class.Memoize(function () {
let uri = services.io.newFileURI(this).QueryInterface(Ci.nsIFileURL);
uri.QueryInterface(Ci.nsIMutable).mutable = false;
return uri;
}),
/**
* Iterates over the objects in this directory.