Skip to content

Commit

Permalink
Assign names that Eclipse can see.
Browse files Browse the repository at this point in the history
  • Loading branch information
arantius committed May 19, 2011
1 parent cb0f8d4 commit 07cf0af
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion content/addons4-overlay.js
Expand Up @@ -28,7 +28,7 @@ createItem = function GM_createItem(aObj, aIsInstall, aIsRemote) {
// Set up an "observer" on the config, to keep the displayed items up to date
// with their actual state.
var observer = {
notifyEvent: function(script, event, data) {
notifyEvent: function observer_notifyEvent(script, event, data) {
if ('addons://list/user-script' != gViewController.currentViewId) return;

var addon = ScriptAddonFactoryByScript(script);
Expand Down
2 changes: 1 addition & 1 deletion content/browser.js
Expand Up @@ -3,7 +3,7 @@
// all the main injection logic, though that should probably be a proper XPCOM
// service and wouldn't need to be initialized in that case.

var GM_BrowserUI = {};
function GM_BrowserUI() {};

/**
* nsISupports.QueryInterface
Expand Down
2 changes: 1 addition & 1 deletion content/newscript.js
@@ -1,7 +1,7 @@
/////////////////////////////// global variables ///////////////////////////////

var bundle = null;
window.addEventListener("load", function() {
window.addEventListener("load", function window_load() {
// init the global string bundle
bundle = document.getElementById("gm-browser-bundle");

Expand Down
11 changes: 7 additions & 4 deletions content/scripticon.js
Expand Up @@ -30,21 +30,24 @@ ScriptIcon.prototype.isImage = function(contentType) {
return /^image\//i.test(contentType);
};

ScriptIcon.prototype.__defineGetter__("filename", function() {
ScriptIcon.prototype.__defineGetter__("filename",
function ScriptIcon_getFilename() {
return (this._filename || this._dataURI);
});

ScriptIcon.prototype.__defineGetter__("fileURL", function() {
ScriptIcon.prototype.__defineGetter__("fileURL",
function ScriptIcon_getFileURL() {
if (this._dataURI) {
return this._dataURI;
} else if (this._filename) {
} else if (this._filename) {
return GM_getUriFromFile(this.file).spec;
} else {
return "chrome://greasemonkey/skin/userscript.png";
}
});

ScriptIcon.prototype.__defineSetter__("fileURL", function(iconURL) {
ScriptIcon.prototype.__defineSetter__("fileURL",
function ScriptIcon_setFileURL(iconURL) {
if (/^data:/i.test(iconURL)) {
// icon is a data scheme
this._dataURI = iconURL;
Expand Down
4 changes: 2 additions & 2 deletions content/statusbar.js
@@ -1,12 +1,12 @@
(function() {
(function private_scope() {

var statusEl;
var statusEnabledItemEl;
var statusImageEl;
var statusPopupEl;
var stringBundle;

window.addEventListener('load', function() {
window.addEventListener('load', function window_load() {
statusEl = document.getElementById('gm-status');
statusEnabledItemEl = document.getElementById("gm-status-enabled-item");
statusImageEl = document.getElementById("gm-status-image");
Expand Down

0 comments on commit 07cf0af

Please sign in to comment.