From 610aa04fdb9705356a10930d734569069cb7e8ac Mon Sep 17 00:00:00 2001 From: Spiros Eliopoulos Date: Wed, 30 Apr 2014 23:02:09 -0400 Subject: [PATCH] properly handle attr and style As part of 6d509c4, the native code that handles attr and style should have been changed to handle non-Maybe values. --- src/Native/D3/Selection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Native/D3/Selection.js b/src/Native/D3/Selection.js index 2a32f54..c97e316 100644 --- a/src/Native/D3/Selection.js +++ b/src/Native/D3/Selection.js @@ -189,7 +189,7 @@ Elm.Native.D3.Selection.make = function(elm) { function elm_attr(name, valfn) { name = JS.fromString(name); - valfn = safeValfn(valfn, safeOptEvaluator); + valfn = safeValfn(valfn, safeEvaluator); return function(k, selection, i) { return k(selection.attr(name, safeIndexed(i, valfn)), i); }; @@ -197,7 +197,7 @@ Elm.Native.D3.Selection.make = function(elm) { function elm_style(name, valfn) { name = JS.fromString(name); - valfn = safeValfn(valfn, safeOptEvaluator); + valfn = safeValfn(valfn, safeEvaluator); return function(k, selection, i) { return k(selection.style(name, safeIndexed(i, valfn)), i); };