Add missing semicolons noted by jslint

Taken from a patch by Lex Hider on the mailing list
This commit is contained in:
Dan Winship 2010-03-15 09:50:05 -04:00
parent 543a41bfea
commit 3ce89e3c80
16 changed files with 52 additions and 52 deletions

View File

@ -455,7 +455,7 @@ SwitcherList.prototype = {
},
addSeparator: function () {
let box = new St.Bin({ style_class: 'separator' })
let box = new St.Bin({ style_class: 'separator' });
this._separator = box;
this._list.add_actor(box);
},
@ -599,7 +599,7 @@ AppIcon.prototype = {
this._label = new St.Label({ text: this.app.get_name() });
this.actor.add(this._label, { x_fill: false });
}
}
};
function AppSwitcher(apps) {
this._init(apps);

View File

@ -259,9 +259,9 @@ AppSearchResultDisplay.prototype = {
return;
let children = this._container.get_children();
let targetActor = children[this.selectionIndex];
this.provider.activateResult(targetActor._delegate.app.get_id())
this.provider.activateResult(targetActor._delegate.app.get_id());
}
}
};
function BaseAppSearchProvider() {
this._init();
@ -330,7 +330,7 @@ AppSearchProvider.prototype = {
expandSearch: function(terms) {
log("TODO expand search");
}
}
};
function PrefsSearchProvider() {
this._init();
@ -356,7 +356,7 @@ PrefsSearchProvider.prototype = {
controlCenter.launch();
Main.overview.hide();
}
}
};
function AppIcon(app) {
this._init(app);
@ -382,7 +382,7 @@ AppIcon.prototype = {
this._name.clutter_text.line_alignment = Pango.Alignment.CENTER;
box.add_actor(this._name);
}
}
};
function AppWellIcon(app) {
this._init(app);
@ -588,7 +588,7 @@ AppWellIcon.prototype = {
getDragActorSource: function() {
return this._icon.icon;
}
}
};
Signals.addSignalMethods(AppWellIcon.prototype);
function AppIconMenu(source) {
@ -1013,7 +1013,7 @@ WellGrid.prototype = {
addItem: function(actor) {
this._grid.add_actor(actor);
}
}
};
function AppWell() {
this._init();

View File

@ -16,7 +16,7 @@ function _sameDay(dateA, dateB) {
function Calendar() {
this._init();
};
}
Calendar.prototype = {
_init: function() {

View File

@ -112,7 +112,7 @@ Pane.prototype = {
else
this.open();
}
}
};
Signals.addSignalMethods(Pane.prototype);
function ResultArea(displayType, flags) {
@ -131,7 +131,7 @@ ResultArea.prototype = {
this.resultsContainer.append(this.display.actor, Big.BoxPackFlags.EXPAND);
this.display.load();
}
}
};
// Utility function shared between ResultPane and the DocDisplay in the main dash.
// Connects to the detail signal of the display, and on-demand creates a new
@ -187,7 +187,7 @@ ResultPane.prototype = {
}));
return resultArea.display;
}
}
};
function SearchEntry() {
this._init();
@ -390,7 +390,7 @@ SearchResult.prototype = {
else
this.provider.activateResult(this.metaInfo.id);
}
}
};
function OverflowSearchResults(provider) {
this._init(provider);
@ -440,7 +440,7 @@ OverflowSearchResults.prototype = {
let targetActor = children[this.selectionIndex];
targetActor._delegate.activate();
}
}
};
function SearchResults(searchSystem) {
this._init(searchSystem);
@ -607,7 +607,7 @@ SearchResults.prototype = {
resultDisplay.activateSelected();
Main.overview.hide();
}
}
};
function MoreLink() {
this._init();
@ -641,7 +641,7 @@ MoreLink.prototype = {
this._expander.style_class = 'more-link-expander open';
}));
}
}
};
Signals.addSignalMethods(MoreLink.prototype);
@ -655,7 +655,7 @@ BackLink.prototype = {
reactive: true });
this.actor.set_child(new St.Bin({ style_class: "section-header-back-image" }));
}
}
};
function SectionHeader(title, suppressBrowse) {
this._init(title, suppressBrowse);
@ -726,7 +726,7 @@ SectionHeader.prototype = {
this.countText.text = countText;
}
}
}
};
Signals.addSignalMethods(SectionHeader.prototype);
@ -750,7 +750,7 @@ SearchSectionHeader.prototype = {
this.actor.connect('clicked', onClick);
}
}
};
function Section(titleString, suppressBrowse) {
this._init(titleString, suppressBrowse);
@ -766,7 +766,7 @@ Section.prototype = {
vertical: true });
this.actor.add(this.content);
}
}
};
function Dash() {
this._init();

View File

@ -240,7 +240,7 @@ Signals.addSignalMethods(GenericDisplayItem.prototype);
const GenericDisplayFlags = {
DISABLE_VSCROLLING: 1 << 0
}
};
/* This is a virtual class that represents a display containing a collection of items
* that can be filtered with a search string.
@ -698,7 +698,7 @@ GenericDisplay.prototype = {
this._selectedIndex = index;
if (index < 0)
return
return;
// Mark the new item as selected and create its details pane
let item = this._findDisplayedByIndex(index);

View File

@ -136,7 +136,7 @@ Notebook.prototype = {
let vAdjust = tabData.scrollView.vscroll.adjustment;
vAdjust.value = vAdjust.upper - vAdjust.page_size;
}
}
};
Signals.addSignalMethods(Notebook.prototype);
function Result(command, o, index) {
@ -164,7 +164,7 @@ Result.prototype = {
padBin.add_actor(line);
this.actor.append(padBin, Big.BoxPackFlags.NONE);
}
}
};
function ActorHierarchy() {
this._init();
@ -215,7 +215,7 @@ ActorHierarchy.prototype = {
let link = children[idx];
this.emit('selection', actor);
}
}
};
Signals.addSignalMethods(ActorHierarchy.prototype);
function PropertyInspector() {
@ -249,7 +249,7 @@ PropertyInspector.prototype = {
this.actor.add_actor(propDisplay);
}
}
}
};
function Inspector() {
this._init();
@ -311,7 +311,7 @@ Inspector.prototype = {
}));
Clutter.grab_pointer(eventHandler);
}
}
};
Signals.addSignalMethods(Inspector.prototype);
@ -329,13 +329,13 @@ ErrorLog.prototype = {
},
_formatTime: function(d){
function pad(n) { return n < 10 ? '0' + n : n };
function pad(n) { return n < 10 ? '0' + n : n; }
return d.getUTCFullYear()+'-'
+ pad(d.getUTCMonth()+1)+'-'
+ pad(d.getUTCDate())+'T'
+ pad(d.getUTCHours())+':'
+ pad(d.getUTCMinutes())+':'
+ pad(d.getUTCSeconds())+'Z'
+ pad(d.getUTCSeconds())+'Z';
},
_renderText: function() {
@ -349,7 +349,7 @@ ErrorLog.prototype = {
}
this.text.text = text;
}
}
};
function Extensions() {
this._init();

View File

@ -21,17 +21,17 @@ const BusIface = {
methods: [{ name: 'GetConnectionUnixProcessID',
inSignature: 's',
outSignature: 'i' }]
}
};
const Bus = function () {
this._init();
}
};
Bus.prototype = {
_init: function() {
DBus.session.proxifyObject(this, 'org.freedesktop.DBus', '/org/freedesktop/DBus');
}
}
};
DBus.proxifyPrototype(Bus.prototype, BusIface);

View File

@ -39,7 +39,7 @@ const TRAY_BORDER_WIDTH = 0;
const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5;
const STANDARD_TRAY_ICON_ORDER = ['keyboard', 'volume', 'bluetooth', 'network', 'battery']
const STANDARD_TRAY_ICON_ORDER = ['keyboard', 'volume', 'bluetooth', 'network', 'battery'];
const STANDARD_TRAY_ICON_IMPLEMENTATIONS = {
'bluetooth-applet': 'bluetooth',
'gnome-volume-control-applet': 'volume',
@ -130,7 +130,7 @@ TextShadower.prototype = {
child.allocate(childBox, flags);
}
}
}
};
/**
* AppPanelMenu:
@ -287,7 +287,7 @@ AppPanelMenu.prototype = {
this.emit('changed');
}
}
};
Signals.addSignalMethods(AppPanelMenu.prototype);

View File

@ -59,7 +59,7 @@ PlaceInfo.prototype = {
isRemovable: function() {
return false;
}
}
};
function PlaceDeviceInfo(mount) {
this._init(mount);
@ -99,7 +99,7 @@ PlaceDeviceInfo.prototype = {
_removeFinish: function(o, res, data) {
this._mount.unmount_finish(res);
}
}
};
function PlacesManager() {
@ -581,4 +581,4 @@ PlaceSearchProvider.prototype = {
let places = previousResults.map(function (id) { return Main.placesManager.lookupPlaceById(id); });
return this._searchPlaces(places, terms);
}
}
};

View File

@ -168,7 +168,7 @@ CommandCompleter.prototype = {
function RunDialog() {
this._init();
};
}
RunDialog.prototype = {
_init : function() {

View File

@ -207,7 +207,7 @@ SearchProvider.prototype = {
expandSearch: function(terms) {
throw new Error("not implemented");
}
}
};
Signals.addSignalMethods(SearchProvider.prototype);
function SearchSystem() {
@ -275,5 +275,5 @@ SearchSystem.prototype = {
return results;
}
}
};
Signals.addSignalMethods(SearchSystem.prototype);

View File

@ -302,7 +302,7 @@ AppsWidgetInfo.prototype = {
launch : function() {
this._info.launch();
}
}
};
function AppsWidget() {
this._init.apply(this, arguments);

View File

@ -77,12 +77,12 @@ WindowAttentionHandler.prototype = {
window.connect('notify::title', Lang.bind(this, function(win) {
notification.update(this._getTitle(app, win), this._getBanner(app, win), false);
}));
window.connect('notify::demands-attention', Lang.bind(this, function() { source.destroy() }));
window.connect('focus', Lang.bind(this, function() { source.destroy() }));
window.connect('unmanaged', Lang.bind(this, function() { source.destroy() }));
window.connect('notify::demands-attention', Lang.bind(this, function() { source.destroy(); }));
window.connect('focus', Lang.bind(this, function() { source.destroy(); }));
window.connect('unmanaged', Lang.bind(this, function() { source.destroy(); }));
}
}
};
function Source(sourceId, app, window) {
this._init(sourceId, app, window);
@ -106,4 +106,4 @@ Source.prototype = {
MessageTray.Source.prototype.clicked.call(this);
}
}
};

View File

@ -1429,7 +1429,7 @@ Workspace.prototype = {
// Tests if @win should be shown in the Overview
_isOverviewWindow : function (win) {
let tracker = Shell.WindowTracker.get_default()
let tracker = Shell.WindowTracker.get_default();
return tracker.is_window_interesting(win.get_meta_window());
},

View File

@ -92,7 +92,7 @@ WorkspaceSwitcherPopup.prototype = {
Tweener.addTween(this._container, { opacity: 0.0,
time: ANIMATION_TIME,
transition: "easeOutQuad",
onComplete: function() { this.actor.hide() },
onComplete: function() { this.actor.hide(); },
onCompleteScope: this
});
}

View File

@ -262,7 +262,7 @@ GenericWorkspacesView.prototype = {
_addWorkspaceActor: function() {
throw new Error("Not implemented");
}
}
};
function MosaicView(width, height, x, y, animate) {
this._init(width, height, x, y, animate);