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

Commit 0ca0380

Browse files
author
Gabriel Schulhof
committed
Popup: data-tolerance="0" did not work.
1 parent c924ed4 commit 0ca0380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ define( [ "jquery",
306306
_setTolerance: function( value ) {
307307
var tol = { t: 30, r: 15, b: 30, l: 15 };
308308

309-
if ( value ) {
309+
if ( value !== undefined ) {
310310
var ar = String( value ).split( "," );
311311

312312
$.each( ar, function( idx, val ) { ar[ idx ] = parseInt( val, 10 ); } );

0 commit comments

Comments
 (0)