Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3208 from adobe/iwehrman/fix-chm-provider-selection
Browse files Browse the repository at this point in the history
Fix code hint provider selection
  • Loading branch information
redmunds committed Mar 22, 2013
2 parents e2f313f + 2c55985 commit e110b2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/editor/CodeHintList.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ define(function (require, exports, module) {
this.handleClose();
}
} else {
this.hints.forEach(function (item, index) {
$.each(this.hints, function (index, item) {
if (index > self.maxResults) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/editor/CodeHintManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ define(function (require, exports, module) {
var mode = editor.getModeForSelection(),
enabledProviders = _getProvidersForMode(mode);

enabledProviders.forEach(function (item, index) {
$.each(enabledProviders, function (index, item) {
if (item.provider.hasHints(editor, lastChar)) {
sessionProvider = item.provider;
return false;
Expand Down

0 comments on commit e110b2c

Please sign in to comment.