more jslint fixes

git-svn-id: http://google-refine.googlecode.com/svn/trunk@597 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-05-05 00:39:40 +00:00
parent e669f0f542
commit 900e9a4bbc

View File

@ -105,14 +105,14 @@ SchemaAlignmentDialog.UILink.prototype._startEditProperty = function(elmt) {
var outgoing = [];
var incoming = [];
function onDone(properties) {
var onDone = function(properties) {
dismissBusy();
self._showPropertySuggestPopup(
elmt,
properties
);
}
};
SchemaAlignmentDialog.UILink._getPropertiesOfType(
sourceTypeID,
@ -195,12 +195,12 @@ SchemaAlignmentDialog.UILink.prototype._showPropertySuggestPopup = function(elmt
if (suggestions.length > 0) {
divSearch = $('<div>').addClass("schema-alignment-link-menu-type-search2").html('<div>Search for a property or pick one below</div>').appendTo(menu);
function createSuggestion(suggestion) {
var createSuggestion = function(suggestion) {
var menuItem = MenuSystem.createMenuItem().appendTo(menu);
menuItem.html(suggestion.id).click(function() {
commitProperty(suggestion);
});
}
};
for (var i = 0; i < suggestions.length; i++) {
createSuggestion(suggestions[i]);