Skip to content

Commit 3349288

Browse files
committed
Added missing "["
1 parent adb7570 commit 3349288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎general-patterns/shim-sniffing.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
// a reusable shim() function
4747
functionshim(o,prop,fn){
48-
varnbody="function"+prop+"(){nativecode]}";
48+
varnbody="function"+prop+"(){[nativecode]}";
4949
if(o.hasOwnProperty(prop)&&
5050
o[prop].toString().replace(/\s/g,'')===nbody){
5151
// native!
@@ -73,4 +73,4 @@
7373
// http://www.jspatterns.com/shim-sniffing/
7474
</script>
7575
</body>
76-
</html>
76+
</html>

0 commit comments

Comments
(0)