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 outgoing = [];
var incoming = []; var incoming = [];
function onDone(properties) { var onDone = function(properties) {
dismissBusy(); dismissBusy();
self._showPropertySuggestPopup( self._showPropertySuggestPopup(
elmt, elmt,
properties properties
); );
} };
SchemaAlignmentDialog.UILink._getPropertiesOfType( SchemaAlignmentDialog.UILink._getPropertiesOfType(
sourceTypeID, sourceTypeID,
@ -195,12 +195,12 @@ SchemaAlignmentDialog.UILink.prototype._showPropertySuggestPopup = function(elmt
if (suggestions.length > 0) { 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); 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); var menuItem = MenuSystem.createMenuItem().appendTo(menu);
menuItem.html(suggestion.id).click(function() { menuItem.html(suggestion.id).click(function() {
commitProperty(suggestion); commitProperty(suggestion);
}); });
} };
for (var i = 0; i < suggestions.length; i++) { for (var i = 0; i < suggestions.length; i++) {
createSuggestion(suggestions[i]); createSuggestion(suggestions[i]);