JSLint: semicolons

git-svn-id: http://google-refine.googlecode.com/svn/trunk@423 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Will Moffat 2010-04-08 19:52:23 +00:00
parent 2c221a5bf6
commit 94aa2e0168
15 changed files with 31 additions and 31 deletions

View File

@ -29,7 +29,7 @@ function ExpressionPreviewDialog(title, cellIndex, rowIndices, values, expressio
values,
expression
);
};
}
ExpressionPreviewDialog.generateWidgetHtml = function() {
return '<div class="grid-layout layout-tight layout-full"><table rows="4" cols="2">' +
@ -141,7 +141,7 @@ ExpressionPreviewDialog.Widget.prototype.getExpression = function(commit) {
ExpressionPreviewDialog.Widget.prototype._getLanguage = function() {
return this._elmts.expressionPreviewLanguageSelect[0].value;
}
};
ExpressionPreviewDialog.Widget.prototype._renderHelpTab = function() {
var self = this;

View File

@ -51,7 +51,7 @@ function ExtendDataPreviewDialog(column, columnIndex, rowIndices, onDone) {
dismissBusy();
self._show(properties);
});
};
}
ExtendDataPreviewDialog.getAllProperties = function(typeID, onDone) {
var query = {
@ -115,7 +115,7 @@ ExtendDataPreviewDialog.getAllProperties = function(typeID, onDone) {
processProperties(o.result.properties);
$.each(o.result["/freebase/type_hints/included_types"], function() {
processProperties(this.properties, null);
})
});
if (cvtProperties.length == 0) {
onDone(allProperties);
@ -247,7 +247,7 @@ ExtendDataPreviewDialog.prototype._update = function() {
extension: JSON.stringify(this._extension)
},
function(data) {
self._renderPreview(data)
self._renderPreview(data);
},
"json"
);
@ -362,4 +362,4 @@ ExtendDataPreviewDialog.prototype._renderPreview = function(data) {
}
container.append(table);
}
};

View File

@ -36,7 +36,7 @@ ListFacet.prototype.getUIState = function() {
delete json.c.selection;
return json;
}
};
ListFacet.prototype.getJSON = function() {
var o = {
@ -49,7 +49,7 @@ ListFacet.prototype.getJSON = function() {
selection: [],
selectBlank: this._blankChoice != null && this._blankChoice.s,
selectError: this._errorChoice != null && this._errorChoice.s
}
};
for (var i = 0; i < this._selection.length; i++) {
var choice = {
v: cloneDeep(this._selection[i].v)

View File

@ -55,7 +55,7 @@ RangeFacet.prototype.getUIState = function() {
};
return json;
}
};
RangeFacet.prototype.getJSON = function() {

View File

@ -25,7 +25,7 @@ TextSearchFacet.prototype.getUIState = function() {
};
return json;
}
};
TextSearchFacet.prototype.getJSON = function() {
var o = {

View File

@ -12,7 +12,7 @@ function onLoad() {
if (isThereNewRelease()) {
$('<div id="version-message">' +
'New version "' + GridworksReleases.releases[0].description + '" <a href="' + GridworksReleases.homepage + '">available for download here</a>.' +
'</div>').appendTo(document.body)
'</div>').appendTo(document.body);
}
}
@ -79,7 +79,7 @@ function renderProjects(data) {
dataType: "json",
success: function (data) {
if (data && typeof data['code'] != 'undefined' && data.code == "ok") {
window.location.reload()
window.location.reload();
}
}
});

View File

@ -125,7 +125,7 @@ Gridworks.reinitializeProjectData = function(f) {
},
f
);
}
};
/*
* Utility state functions

View File

@ -38,7 +38,7 @@ BrowsingEngine.prototype.getFacetUIStates = function() {
f.push(facet.facet.getUIState());
}
return f;
}
};
BrowsingEngine.prototype._initializeUI = function() {
var self = this;

View File

@ -66,8 +66,8 @@ ProcessWidget.prototype.showUndo = function(historyEntry) {
var elmts = DOM.bind(this._div);
elmts.description.text(historyEntry.description);
elmts.undo.click(function() { self.undo() });
elmts.close.click(function() { $(".process-panel-inner").hide() });
elmts.undo.click(function() { self.undo(); });
elmts.close.click(function() { $(".process-panel-inner").hide(); });
};
ProcessWidget.prototype.undo = function() {

View File

@ -44,7 +44,7 @@ SchemaAlignmentDialog.UILink = function(dialog, link, table, options, parentUINo
};
SchemaAlignmentDialog.UILink.prototype._renderMain = function() {
$(this._tdMain).empty()
$(this._tdMain).empty();
var label = this._link.property != null ? this._link.property.id : "property?";
@ -109,7 +109,7 @@ SchemaAlignmentDialog.UILink.prototype._startEditProperty = function(elmt) {
var suggestions = SchemaAlignmentDialog.UILink._rankProperties(outgoing, incoming, sourceTypeID, targetTypeID, targetTypeName);
self._showPropertySuggestPopup(elmt, suggestions);
};
}
var cotypes = [];
function doCoTypes() {
@ -125,7 +125,7 @@ SchemaAlignmentDialog.UILink.prototype._startEditProperty = function(elmt) {
doCoTypes
);
}
};
}
SchemaAlignmentDialog.UILink._getPropertiesOfType(
sourceTypeID,
@ -186,7 +186,7 @@ SchemaAlignmentDialog.UILink._rankProperties = function(outgoing, incoming, sour
return score;
};
};
}
var typeScorer;
if (targetTypeID === null) {

View File

@ -81,14 +81,14 @@ SchemaAlignment._batchSearch = function(queries, onDone) {
args.push(function() {
onDone(result);
})
});
Ajax.chainGetJSON.apply(null, args);
};
SchemaAlignment._cleanName = function(s) {
return s.replace(/\W/g, " ").replace(/\s+/g, " ").toLowerCase();
}
};
SchemaAlignment.createNewRootNode = function() {
var rootNode = null;
@ -136,7 +136,7 @@ function SchemaAlignmentDialog(protograph, onDone) {
this._nodeUIs = [];
this._createDialog();
this.preview();
};
}
SchemaAlignmentDialog.prototype._createDialog = function() {
var self = this;

View File

@ -1,3 +1,3 @@
String.prototype.trim = function() {
return this.replace(/^\s+/, '').replace(/\s+$/, '');
}
};

View File

@ -6,7 +6,7 @@ function DataTableCellUI(dataTableView, cell, rowIndex, cellIndex, td) {
this._td = td;
this._render();
};
}
DataTableCellUI.prototype._render = function() {
var self = this;
@ -132,7 +132,7 @@ DataTableCellUI.prototype._render = function() {
}
}
divContent.appendTo(this._td)
divContent.appendTo(this._td);
};
DataTableCellUI.prototype._doRematch = function() {

View File

@ -337,7 +337,7 @@ DataTableColumnHeaderUI.prototype._createMenuForColumnHeader = function(elmt) {
{
label: "Collapse All Other Columns",
click: function() {
var collapsedColumnNames = {}
var collapsedColumnNames = {};
for (var i = 0; i < theProject.columnModel.columns.length; i++) {
if (i != self._columnIndex) {
collapsedColumnNames[theProject.columnModel.columns[i].name] = true;
@ -633,7 +633,7 @@ DataTableColumnHeaderUI.prototype._doTextTransformPrompt = function() {
bodyElmts.repeatCountInput[0].value
);
dismiss();
})
});
footerElmts.cancelButton.click(dismiss);
var o = DataTableView.sampleVisibleRows(this._column);
@ -842,7 +842,7 @@ DataTableColumnHeaderUI.prototype._doAddColumn = function(initialExpression) {
{ modelsChanged: true }
);
dismiss();
})
});
footerElmts.cancelButton.click(dismiss);
var o = DataTableView.sampleVisibleRows(this._column);

View File

@ -87,7 +87,7 @@ DataTableView.prototype._renderPagingControls = function(table) {
var sizes = [ 5, 10, 15, 20, 25, 50 ];
var renderPageSize = function(index) {
var pageSize = sizes[index];
var a = $('<a href="javascript:{}"></a>').appendTo(pagingControls1)
var a = $('<a href="javascript:{}"></a>').appendTo(pagingControls1);
if (pageSize == self._pageSize) {
a.text("[" + pageSize + "]").addClass("inaction");
} else {
@ -209,7 +209,7 @@ DataTableView.prototype._renderDataTable = function(table) {
if (column.name in self._collapsedColumnNames) {
$(td).html("&nbsp;").attr("title", column.name).click(function(evt) {
delete self._collapsedColumnNames[column.name]
delete self._collapsedColumnNames[column.name];
self.render();
});
} else {