From d85f11d8bc6160d2663086885b0efe1924caf616 Mon Sep 17 00:00:00 2001 From: pcornelissen Date: Fri, 25 Apr 2014 09:14:27 +0200 Subject: [PATCH] issue #40 route always emptied title field with no reason - title is no longer touched --- lib/client.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/client.dart b/lib/client.dart index 45cbd02..a4d4014 100644 --- a/lib/client.dart +++ b/lib/client.dart @@ -714,14 +714,13 @@ class Router { }); void _go(String path, String title, bool replace) { - if (title == null) title = ''; if (_useFragment) { if (replace) { _window.location.replace('#$path'); } else { _window.location.assign('#$path'); } - (_window.document as HtmlDocument).title = title; + if (title != null)(_window.document as HtmlDocument).title = title; } else { if (replace) { _window.history.replaceState(null, title, path);