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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -39,7 +39,7 @@ const TRAY_BORDER_WIDTH = 0;
const HOT_CORNER_ACTIVATION_TIMEOUT = 0.5; 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 = { const STANDARD_TRAY_ICON_IMPLEMENTATIONS = {
'bluetooth-applet': 'bluetooth', 'bluetooth-applet': 'bluetooth',
'gnome-volume-control-applet': 'volume', 'gnome-volume-control-applet': 'volume',
@ -130,7 +130,7 @@ TextShadower.prototype = {
child.allocate(childBox, flags); child.allocate(childBox, flags);
} }
} }
} };
/** /**
* AppPanelMenu: * AppPanelMenu:
@ -287,7 +287,7 @@ AppPanelMenu.prototype = {
this.emit('changed'); this.emit('changed');
} }
} };
Signals.addSignalMethods(AppPanelMenu.prototype); Signals.addSignalMethods(AppPanelMenu.prototype);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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