src/JSUtils/ScopeManager.js
function handleRename(response) {

        if (response.error) {
            EditorManager.getActiveEditor().displayErrorMessageAtCursor(response.error);
            return;
        }

        var file = response.file,
            offset = response.offset;

        var $deferredFindRefs = getPendingRequest(file, offset, MessageIds.TERN_REFS);

        if ($deferredFindRefs) {
            $deferredFindRefs.resolveWith(null, [response]);
        }
    }
function handleRename(response) {

        if (response.error) {
            EditorManager.getActiveEditor().displayErrorMessageAtCursor(response.error);
            return;
        }

        var file = response.file,
            offset = response.offset;

        var $deferredFindRefs = getPendingRequest(file, offset, MessageIds.TERN_REFS);

        if ($deferredFindRefs) {
            $deferredFindRefs.resolveWith(null, [response]);
        }
    }
function handleRename ( response ) { if ( response . error ) { EditorManager . getActiveEditor ( ) . displayErrorMessageAtCursor ( response . error ) ; return ; } var file = response . file , offset = response . offset ; var $deferredFindRefs = getPendingRequest ( file , offset , MessageIds . TERN_REFS ) ; if ( $deferredFindRefs ) { $deferredFindRefs . resolveWith ( null , [ response ] ) ; } }
Handle the response from the tern node domain when
it responds with the references

@param response - the response from the node domain
Handle the response from the tern node domain when it responds with the references