Math: fix changed flag to not break calculations. See #1083

This commit is contained in:
Rob Garrison 2015-12-13 09:23:49 -06:00
parent d6ff627aee
commit 36a8b5a28e

View File

@ -236,7 +236,7 @@
// all non-info tbody cells
mathAttr = wo.math_dataAttrib;
$mathCells = c.$tbodies.children( 'tr' ).children( '[' + mathAttr + ']' );
changed = changed || math.mathType( c, $mathCells, wo.math_priority );
changed = math.mathType( c, $mathCells, wo.math_priority ) || changed;
// only info tbody cells
$mathCells = c.$table
@ -256,7 +256,7 @@
filters[ filter ] = filters[ filter ] ? filters[ filter ].add( $cell ) : $cell;
});
$.each( filters, function( hasFilter, $cells ) {
changed = changed || math.mathType( c, $cells, [ 'all' ], hasFilter );
changed = math.mathType( c, $cells, [ 'all' ], hasFilter ) || changed;
});
// trigger an update only if cells inside the tbody changed