Permalink
Browse files

Address review comments.

  • Loading branch information...
1 parent 958be49 commit 0baffeba2d3c8297271a7787ee5bb21c5a345aad @Gozala committed Apr 27, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 packages/api-utils/lib/self.js
@@ -6,12 +6,13 @@
"use strict";
const { CC } = require('chrome');
-const { jetpackID, name, manifest, metadata, prefixURI, version,
- loadReason } = require('@packaging');
+const { jetpackID, name, prefixURI, version, loadReason } = require('@packaging');
const XMLHttpRequest = CC('@mozilla.org/xmlextras/xmlhttprequest;1',
'nsIXMLHttpRequest');
+const addonDataURI = prefixURI + name + '/data/';
+
// Utility function that synchronously reads local resource from the given
// `uri` and returns content string.
function readURI(uri) {
@@ -26,7 +27,6 @@ function uri(path) {
return addonDataURI + (path || '');
}
-const addonDataURI = prefixURI + name + '/data/';
// Some XPCOM APIs require valid URIs as an argument for certain operations
// (see `nsILoginManager` for example). This property represents add-on
@@ -35,7 +35,7 @@ exports.uri = 'addon:' + jetpackID;
exports.id = jetpackID;
exports.name = name;
exports.loadReason = loadReason;
-exports.version = metadata[name].version;
+exports.version = version;
exports.data = Object.freeze({
url: uri,
load: function read(path) {

0 comments on commit 0baffeb

Please sign in to comment.