mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
change deprecated .className to .type
This commit is contained in:
1 parent
387dc77716
commit
e73a877ee6
10 files changed
+51
-51
No files matched your search
@@ -210,18 +210,18 @@ define(function (require, exports, module) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (token.className === null) {
|
||||
if (token.type === null) {
|
||||
token = session.getNextTokenOnLine(cursor);
|
||||
}
|
||||
|
||||
if (lastToken && lastToken.className === null) {
|
||||
if (lastToken && lastToken.type === null) {
|
||||
lastToken = session.getNextTokenOnLine(cachedCursor);
|
||||
}
|
||||
|
||||
// Both of the tokens should never be null (happens when token is off
|
||||
// the end of the line), so one is null then close the hints.
|
||||
if (!lastToken || !token ||
|
||||
token.className !== lastToken.className) {
|
||||
token.type !== lastToken.type) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user