mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Enable use of "use strict" and fix two global variable declarations
This commit is contained in:
parent
3ac6158d37
commit
1bd4720304
5 changed files with 13 additions and 1 deletions
4
js/ie.js
4
js/ie.js
|
@ -1,6 +1,8 @@
|
|||
// This file is licensed under the MIT License (MIT) available on
|
||||
// http://opensource.org/licenses/MIT.
|
||||
|
||||
"use strict"
|
||||
|
||||
function pngfix(){
|
||||
//Allows IE6 to render transparent png
|
||||
var arVersion = navigator.appVersion.split("MSIE")
|
||||
|
@ -38,7 +40,7 @@ if ((version >= 5.5) && (document.body.filters))
|
|||
}
|
||||
|
||||
//Let other scripts know browser is IE6-7
|
||||
legacyIE=true;
|
||||
var legacyIE=true;
|
||||
|
||||
//Render all transparent pngs
|
||||
window.onload=pngfix;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue