Remove logs from browser console in Dev Tools. (#15511)

This commit is contained in:
CJ Cenizal 2017-12-11 11:15:36 -08:00 committed by GitHub
parent 205371cdca
commit 94759d6f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -336,16 +336,15 @@ export function populateContext(tokenPath, context, editor, includeAutoComplete,
wsToUse = _.find(walkStates, function (ws) {
return _.isEmpty(ws.components)
});
console.log("resolved ", tokenPath, 'to', walkStates);
if (!wsToUse && walkStates.length > 1 && !includeAutoComplete) {
console.info("more then one context active for current path, but autocomplete isn't requested", walkStates);
}
if (!wsToUse) {
wsToUse = walkStates[0];
}
console.log("resolved ", tokenPath, 'to', wsToUse, 'options were', walkStates);
_.each(wsToUse.contextExtensionList, function (extension) {
_.assign(context, extension);
});

View file

@ -15,7 +15,6 @@ export function getContentType(body) {
export function send(method, path, data) {
var wrappedDfd = $.Deferred();
console.log("Calling " + path);
var isGetRequest = /^get$/i.test(method)
if (data && isGetRequest) {
method = "POST";