mirror of
https://github.com/adobe/brackets.git
synced 2024-11-20 09:53:00 +01:00
Small Code clean up
This commit is contained in:
parent
7ca5f89f14
commit
4c633af100
@ -37,7 +37,7 @@ define(function (require, exports, module) {
|
||||
* @param {!string} newConstant
|
||||
*/
|
||||
function _deprecateCommand(oldConstant, newConstant) {
|
||||
var warning = "Use Commands." + newConstant + " instead of Commands." + oldConstant + ".",
|
||||
var warning = "Use Commands." + newConstant + " instead of Commands." + oldConstant,
|
||||
newValue = exports[newConstant];
|
||||
|
||||
Object.defineProperty(exports, oldConstant, {
|
||||
|
@ -560,7 +560,7 @@ define(function (require, exports, module) {
|
||||
DeprecationWarning.deprecationWarning("Add " + command + " Command to the Find Menu instead of the Edit Menu.", true);
|
||||
DeprecationWarning.deprecationWarning("Use MenuSection.FIND_FIND_COMMANDS instead of MenuSection.EDIT_FIND_COMMANDS.", true);
|
||||
} else if (relativeID === MenuSection.EDIT_REPLACE_COMMANDS) {
|
||||
DeprecationWarning.deprecationWarning("Add " + command + "Command to the Find Menu instead of the Edit Menu.", true);
|
||||
DeprecationWarning.deprecationWarning("Add " + command + " Command to the Find Menu instead of the Edit Menu.", true);
|
||||
DeprecationWarning.deprecationWarning("Use MenuSection.FIND_REPLACE_COMMANDS instead of MenuSection.EDIT_REPLACE_COMMANDS.", true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user