Blame view

app/bower_components/jquery/src/manipulation/support.js 1.01 KB
87c93a029   Dang YoungWorld   add modal
1
2
  define( [
  	"../var/document",
f986e111b   TRUONG   add libs
3
  	"../var/support"
87c93a029   Dang YoungWorld   add modal
4
  ], function( document, support ) {
f986e111b   TRUONG   add libs
5

87c93a029   Dang YoungWorld   add modal
6
  "use strict";
f986e111b   TRUONG   add libs
7

87c93a029   Dang YoungWorld   add modal
8
9
10
11
  ( function() {
  	var fragment = document.createDocumentFragment(),
  		div = fragment.appendChild( document.createElement( "div" ) ),
  		input = document.createElement( "input" );
f986e111b   TRUONG   add libs
12

87c93a029   Dang YoungWorld   add modal
13
14
15
16
17
18
19
  	// Support: Android 4.0 - 4.3 only
  	// Check state lost if the name is set (#11217)
  	// Support: Windows Web Apps (WWA)
  	// `name` and `type` must use .setAttribute for WWA (#14901)
  	input.setAttribute( "type", "radio" );
  	input.setAttribute( "checked", "checked" );
  	input.setAttribute( "name", "t" );
f986e111b   TRUONG   add libs
20

87c93a029   Dang YoungWorld   add modal
21
  	div.appendChild( input );
f986e111b   TRUONG   add libs
22

87c93a029   Dang YoungWorld   add modal
23
24
25
  	// Support: Android <=4.1 only
  	// Older WebKit doesn't clone checked state correctly in fragments
  	support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
f986e111b   TRUONG   add libs
26

87c93a029   Dang YoungWorld   add modal
27
  	// Support: IE <=11 only
f986e111b   TRUONG   add libs
28
  	// Make sure textarea (and checkbox) defaultValue is properly cloned
f986e111b   TRUONG   add libs
29
30
  	div.innerHTML = "<textarea>x</textarea>";
  	support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
87c93a029   Dang YoungWorld   add modal
31
  } )();
f986e111b   TRUONG   add libs
32
33
  
  return support;
87c93a029   Dang YoungWorld   add modal
34
  } );