From 0ca0380947e358e1402e5bac9822f06213e51c15 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Sat, 1 Dec 2012 16:29:11 +0200 Subject: [PATCH] Popup: data-tolerance="0" did not work. --- js/widgets/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/widgets/popup.js b/js/widgets/popup.js index 5ac84fae9d3..c413608a37d 100644 --- a/js/widgets/popup.js +++ b/js/widgets/popup.js @@ -306,7 +306,7 @@ define( [ "jquery", _setTolerance: function( value ) { var tol = { t: 30, r: 15, b: 30, l: 15 }; - if ( value ) { + if ( value !== undefined ) { var ar = String( value ).split( "," ); $.each( ar, function( idx, val ) { ar[ idx ] = parseInt( val, 10 ); } );