aboutsummaryrefslogtreecommitdiffstats
path: root/bower_components/jquery/src/attributes/support.js
diff options
context:
space:
mode:
authorJonathan Barronville2014-06-07 19:13:28 -0400
committerJonathan Barronville2014-06-07 19:13:28 -0400
commitb56e5c671ce89f1c8ddc67a4ac8d2f59de04ea85 (patch)
tree80ce4d67ff46505dc1ec77b72daf7bed59abf8b4 /bower_components/jquery/src/attributes/support.js
parent67ad58c27c4a2704532246d044e1ecbae2a11022 (diff)
downloadsellevate-b56e5c671ce89f1c8ddc67a4ac8d2f59de04ea85.tar.bz2
Yo.
Diffstat (limited to 'bower_components/jquery/src/attributes/support.js')
-rw-r--r--bower_components/jquery/src/attributes/support.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/bower_components/jquery/src/attributes/support.js b/bower_components/jquery/src/attributes/support.js
new file mode 100644
index 0000000..376b54a
--- /dev/null
+++ b/bower_components/jquery/src/attributes/support.js
@@ -0,0 +1,35 @@
+define([
+ "../var/support"
+], function( support ) {
+
+(function() {
+ var input = document.createElement( "input" ),
+ select = document.createElement( "select" ),
+ opt = select.appendChild( document.createElement( "option" ) );
+
+ input.type = "checkbox";
+
+ // Support: iOS 5.1, Android 4.x, Android 2.3
+ // Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere)
+ support.checkOn = input.value !== "";
+
+ // Must access the parent to make an option select properly
+ // Support: IE9, IE10
+ support.optSelected = opt.selected;
+
+ // Make sure that the options inside disabled selects aren't marked as disabled
+ // (WebKit marks them as disabled)
+ select.disabled = true;
+ support.optDisabled = !opt.disabled;
+
+ // Check if an input maintains its value after becoming a radio
+ // Support: IE9, IE10
+ input = document.createElement( "input" );
+ input.value = "t";
+ input.type = "radio";
+ support.radioValue = input.value === "t";
+})();
+
+return support;
+
+});