corrade-http-templates – Blame information for rev 62
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
62 | office | 1 | /*! |
2 | * jQuery UI :data 1.12.1 |
||
3 | * http://jqueryui.com |
||
4 | * |
||
5 | * Copyright jQuery Foundation and other contributors |
||
6 | * Released under the MIT license. |
||
7 | * http://jquery.org/license |
||
8 | */ |
||
9 | |||
10 | //>>label: :data Selector |
||
11 | //>>group: Core |
||
12 | //>>description: Selects elements which have data stored under the specified key. |
||
13 | //>>docs: http://api.jqueryui.com/data-selector/ |
||
14 | |||
15 | ( function( factory ) { |
||
16 | if ( typeof define === "function" && define.amd ) { |
||
17 | |||
18 | // AMD. Register as an anonymous module. |
||
19 | define( [ "jquery", "./version" ], factory ); |
||
20 | } else { |
||
21 | |||
22 | // Browser globals |
||
23 | factory( jQuery ); |
||
24 | } |
||
25 | } ( function( $ ) { |
||
26 | return $.extend( $.expr[ ":" ], { |
||
27 | data: $.expr.createPseudo ? |
||
28 | $.expr.createPseudo( function( dataName ) { |
||
29 | return function( elem ) { |
||
30 | return !!$.data( elem, dataName ); |
||
31 | }; |
||
32 | } ) : |
||
33 | |||
34 | // Support: jQuery <1.8 |
||
35 | function( elem, i, match ) { |
||
36 | return !!$.data( elem, match[ 3 ] ); |
||
37 | } |
||
38 | } ); |
||
39 | } ) ); |