mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Address initial comments and suggestions from code review by @rlim.
This commit is contained in:
1 parent
9c371fc518
commit
27b7dce115
8 files changed
+68
-45
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
|
||||
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -232,9 +232,8 @@ define(function (require, exports, module) {
|
||||
JSHints.prototype.getHints = function (key) {
|
||||
var cursor = session.getCursor(),
|
||||
token = session.getToken(cursor);
|
||||
if ((key === null) || HintUtils.maybeIdentifier(token.string)) {
|
||||
if (token && HintUtils.hintable(token)) {
|
||||
|
||||
if ((key === null) || HintUtils.hintable(token)) {
|
||||
if (token) {
|
||||
if (!cachedScope) {
|
||||
var offset = session.getOffset(),
|
||||
scopeResponse = ScopeManager.getScopeInfo(session.editor.document, offset),
|
||||
|
||||
Reference in new issue
Block a user