xonecas.io
286
Sf

simple-flask-coffee-sass-boilerplate / files

simple-flask-coffee-sass-boilerplate / bower_components / jquery / src / attributes / support.js

970 bytes
1define([
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.x, Android 2.3
13	// Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
14	support.checkOn = input.value !== "";
15
16	// Must access the parent to make an option select properly
17	// Support: IE9, IE10
18	support.optSelected = opt.selected;
19
20	// Make sure that the options inside disabled selects aren't marked as disabled
21	// (WebKit marks them as disabled)
22	select.disabled = true;
23	support.optDisabled = !opt.disabled;
24
25	// Check if an input maintains its value after becoming a radio
26	// Support: IE9, IE10
27	input = document.createElement( "input" );
28	input.value = "t";
29	input.type = "radio";
30	support.radioValue = input.value === "t";
31})();
32
33return support;
34
35});