Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Table: prevent jqmData calls for columns without a priority.
Browse files Browse the repository at this point in the history
Closes gh-7315
Fixes gh-7357

(cherry picked from commit ded2f7f)
  • Loading branch information
staabm authored and arschmitz committed Jun 3, 2014
1 parent e71ca3b commit 78c37f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/widgets/table.columntoggle.js
Expand Up @@ -83,12 +83,12 @@ $.widget( "mobile.table", $.mobile.table, {

// create the hide/show toggles
this.headers.not( "td" ).each( function() {
var input,
var input, cells,
header = $( this ),
priority = $.mobile.getAttribute( this, "priority" ),
cells = header.add( header.jqmData( "cells" ) );
priority = $.mobile.getAttribute( this, "priority" );

if ( priority ) {
cells = header.add( header.jqmData( "cells" ) );
cells.addClass( opts.classes.priorityPrefix + priority );

// Make sure the (new?) checkbox is associated with its header via .jqmData() and
Expand Down

0 comments on commit 78c37f7

Please sign in to comment.