diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-07 15:11:42 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-07 18:37:19 +0300 |
commit | ac35566403652fc5cea0c42b273169584e5c9ce2 (patch) | |
tree | 01a94ff37f52da87ac0c0ec5edac16e92cce09e1 /app/assets/javascripts/merge_request_tabs.js | |
parent | aa8260d253a53f73f6c26c734c72fdd600f6e6d4 (diff) |
Fixed duplicate jQuery AJAX spyon
Diffstat (limited to 'app/assets/javascripts/merge_request_tabs.js')
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js b/app/assets/javascripts/merge_request_tabs.js index 8528e0800ae..7f6c74ce39a 100644 --- a/app/assets/javascripts/merge_request_tabs.js +++ b/app/assets/javascripts/merge_request_tabs.js @@ -102,10 +102,10 @@ import './flash'; destroyPipelinesView() { if (this.commitPipelinesTable) { - document.querySelector('#commit-pipeline-table-view') - .removeChild(this.commitPipelinesTable.$el); - this.commitPipelinesTable.$destroy(); + this.commitPipelinesTable = null; + + document.querySelector('#commit-pipeline-table-view').innerHTML = ''; } } |