Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14217 anikendra 1
define([
2
	"../var/support"
3
], function( support ) {
4
 
5
(function() {
6
	var input = document.createElement( "input" ),
7
		select = document.createElement( "select" ),
8
		opt = select.appendChild( document.createElement( "option" ) );
9
 
10
	input.type = "checkbox";
11
 
12
	// Support: iOS<=5.1, Android<=4.2+
13
	// Default value for a checkbox should be "on"
14
	support.checkOn = input.value !== "";
15
 
16
	// Support: IE<=11+
17
	// Must access selectedIndex to make default options select
18
	support.optSelected = opt.selected;
19
 
20
	// Support: Android<=2.3
21
	// Options inside disabled selects are incorrectly marked as disabled
22
	select.disabled = true;
23
	support.optDisabled = !opt.disabled;
24
 
25
	// Support: IE<=11+
26
	// An input loses its value after becoming a radio
27
	input = document.createElement( "input" );
28
	input.value = "t";
29
	input.type = "radio";
30
	support.radioValue = input.value === "t";
31
})();
32
 
33
return support;
34
 
35
});