Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 7 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | (function(d, s, id){ |
||
2 | var js, fjs = d.getElementsByTagName(s)[0]; |
||
3 | if (d.getElementById(id)) {return;} |
||
4 | js = d.createElement(s); js.id = id; |
||
5 | js.src = "https://connect.facebook.net/"+lang+"/all.js"; |
||
|
|||
6 | fjs.parentNode.insertBefore(js, fjs); |
||
7 | }(document, 'script', 'facebook-jssdk')); |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.