add some conditional classes and behaviour for internet explorer

This commit is contained in:
Georg Fischer
2014-06-19 13:07:41 +02:00
parent f476b76fc2
commit 98b1bef7b5
3 changed files with 29 additions and 2 deletions
+6
View File
@@ -6,6 +6,7 @@ define(
var is_initialized = false;
var signals;
var controls;
var is_ie = document.querySelector( 'html' ).classList.contains( 'somewhatokie' );
function init( shared )
{
@@ -24,6 +25,11 @@ define(
control.addEventListener( 'input', controlUpdated, false );
if ( is_ie )
{
control.addEventListener( 'change', controlUpdated, false );
}
updateValue( getInputKey( control.id ), control.value );
updateInput( getCorrespondingInput( control.id ), control.value );
}