getting this error Uncaught TypeError: Cannot call method 'not' of undefined
When navigating to a screen.
Tried renaming screen, custom js to load screen and apperys navigate.
All other screen s load fine.
Error refers to
hierarchyClass = $cells.not( this ).filter( "thead th" ).length && " ui-table-cell-label-top",
within jq mobile 1.3.0 line 8622
code
$.mobile.document.delegate( ":jqmData(role='table')", "tablecreate", function() {
var $table = $( this ),
self = $table.data( "mobile-table" ),
o = self.options;
// If it's not reflow mode, return here.
if( o.mode !== "reflow" ){
return;
}
self.element.addClass( o.classes.reflowTable );
// get headers in reverse order so that top-level headers are appended last
var reverseHeaders = $( self.allHeaders.get().reverse() );
// create the hide/show toggles
reverseHeaders.each(function(i){
var $cells = $( this ).jqmData( "cells" ),
colstart = $( this ).jqmData( "colstart" ),
hierarchyClass = $cells.not( this ).filter( "thead th" ).length && " ui-table-cell-label-top",
Uncaught TypeError: Cannot call method 'not' of undefined
text = $(this).text();
Code: Select all
if( text !== "" ){
if( hierarchyClass ){
var iteration = parseInt( $( this ).attr( "colspan" ), 10 ),
filter = ""
if( iteration ){
filter = "td:nth-child("+ iteration +"n + " + ( colstart ) +")"
}
$cells.filter( filter ).prepend( "<b class='" + o.classes.cellLabels + hierarchyClass + "'>" + text + "</b>" );
}
else {
$cells.prepend( "<b class='" + o.classes.cellLabels + "'>" + text + "</b>" );
}
} });
});
/code
Any ideas?