Permalink
Browse files

Links: Remove

Fixes gh-8194
  • Loading branch information...
gabrielschulhof authored and arschmitz committed Jul 25, 2015
1 parent 07ecd74 commit 5d64d597fc6b3241a37752978feb1b79a3fdc234
Showing with 0 additions and 56 deletions.
  1. +0 −1 js/index.php
  2. +0 −55 js/links.js
View
@@ -87,7 +87,6 @@
'../external/jquery-ui/controlgroup.js',
'widgets/controlgroup.js',
'widgets/controlgroup.backcompat.js',
'links.js',
'widgets/toolbar.js',
'widgets/fixedToolbar.js',
'widgets/fixedToolbar.backcompat.js',
View
@@ -1,55 +0,0 @@
/*!
* jQuery Mobile Links @VERSION
* http://jquerymobile.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
//>>label: Link Classes
//>>group: Utilities
//>>description: Adds classes to links.
( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [
"jquery",
"./core",
"./navigation/path" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} )( function( $ ) {
$.mobile.links = function( target ) {
//links within content areas, tests included with page
$( target )
.find( "a" )
.jqmEnhanceable()
.filter( ":jqmData(rel='popup')[href][href!='']" )
.each( function() {
// Accessibility info for popups
var element = this,
idref = element.getAttribute( "href" ).substring( 1 );
if ( idref ) {
element.setAttribute( "aria-haspopup", true );
element.setAttribute( "aria-owns", idref );
element.setAttribute( "aria-expanded", false );
}
} )
.end()
.not( ".ui-button, :jqmData(role='none'), :jqmData(role='nojs')" )
.addClass( "ui-link" );
};
return $.mobile.links;
} );

0 comments on commit 5d64d59

Please sign in to comment.