diff --git a/README.E4X b/README.E4X deleted file mode 100644 index 5e0b8a93..00000000 --- a/README.E4X +++ /dev/null @@ -1,149 +0,0 @@ - A terse introduction to E4X - Public Domain - -The inline XML literals in this code are part of E4X, a standard -XML processing interface for ECMAScript. In addition to syntax -for XML literals, E4X provides a new kind of native object, -"xml", and a syntax, similar to XPath, for accessing and -modifying the tree. Here is a brief synopsis of the kind of -usage you'll see herein: - -> let xml = - - - - - - ; - - // Select all bar elements of the root foo element -> xml.bar - - - // Select all baz elements anywhere beneath the root -> xml..baz - - - - // Select all of the immediate children of the root -> xml.* - - - - // Select the bar attribute of the root node -> xml.@bar - baz - - // Select all id attributes in the tree -> xml..@id - 1 - 2 - - // Select all attributes of the root node -> xml.@* - baz - quz - -// Add a quux elemend beneath the first baz -> xml..baz[0] += - - -> xml - - - - - - - - - // and beneath the second -> xml.baz[1] = -> xml - - - - - - - - - - // Replace bar's subtree with a foo element -> xml.bar.* = -> xml - - - - - - - - - // Add a bar below bar -> xml.bar.* += - - -> xml - - - - - - - - - - // Adding a quux attribute to the root -> xml.@quux = "foo" - foo -> xml - - - - - - - - - -> xml.bar.@id = "0" -> xml..foo[0] = "Foo" - Foo -> xml..bar[1] = "Bar" - Bar -> xml -js> xml - - - Foo - Bar - - - - - - // Selecting all bar elements where id="1" -> xml..bar.(@id == 1) - Bar - - // Literals: - // XMLList literal. No root node. -> <>Foo
Baz - Foo -
- Baz - -// Interpolation. -> let x = "" -> {x + ""} - -> {x + ""}.toXMLString() - <foo/><?> - -> let x = -> {x}.toXMLString() - - - - diff --git a/common/modules/services.jsm b/common/modules/services.jsm index aa8d9ad5..926f728e 100644 --- a/common/modules/services.jsm +++ b/common/modules/services.jsm @@ -26,7 +26,6 @@ var Services = Module("Services", { this.add("appShell", "@mozilla.org/appshell/appShellService;1", "nsIAppShellService"); this.add("appStartup", "@mozilla.org/toolkit/app-startup;1", "nsIAppStartup"); this.add("bookmarks", "@mozilla.org/browser/nav-bookmarks-service;1", "nsINavBookmarksService"); - this.add("bootstrap", "@dactyl.googlecode.com/base/bootstrap"); this.add("browserSearch", "@mozilla.org/browser/search-service;1", "nsIBrowserSearchService"); this.add("cache", "@mozilla.org/network/cache-service;1", "nsICacheService"); this.add("charset", "@mozilla.org/charset-converter-manager;1", "nsICharsetConverterManager"); diff --git a/common/modules/storage.jsm b/common/modules/storage.jsm index ff40d8de..6a324edd 100644 --- a/common/modules/storage.jsm +++ b/common/modules/storage.jsm @@ -182,9 +182,10 @@ var Storage = Module("Storage", { init: function () { this.cleanup(); - if (services.bootstrap && !services.bootstrap.session) - services.bootstrap.session = {}; - this.session = services.bootstrap ? services.bootstrap.session : {}; + let { Services } = Cu.import("resource://gre/modules/Services.jsm", {}); + if (!Services.dactylSession) + Services.dactylSession = {}; + this.session = Services.dactylSession; }, cleanup: function () {