Commit 27b22040 authored by Clement Ho's avatar Clement Ho

Convert hasOwnProperty check to if statement

parent a26cc6b2
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
break; break;
case 'projects:merge_requests:index': case 'projects:merge_requests:index':
case 'projects:issues:index': case 'projects:issues:index':
if(gl.hasOwnProperty('FilteredSearchManager')) { if(gl.FilteredSearchManager) {
new gl.FilteredSearchManager(); new gl.FilteredSearchManager();
} }
Issuable.init(); Issuable.init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment