Permalink
Browse files

Table: prevent jqmData calls for columns without a priority.

Closes gh-7315
Fixes gh-7357

(cherry picked from commit ded2f7f)
  • Loading branch information...
staabm authored and arschmitz committed May 2, 2014
1 parent e71ca3b commit 78c37f70757350307326ecc934657d236b70c4bc
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/widgets/table.columntoggle.js
@@ -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

0 comments on commit 78c37f7

Please sign in to comment.