From 899341f73a0b900d71a43cfd7e1a35e11cda9d7f Mon Sep 17 00:00:00 2001 From: connors Date: Mon, 16 Sep 2013 13:58:24 -0700 Subject: [PATCH] Fixing a derp in push. --- dist/ratchet.js | 2 +- docs/one.html | 3 +++ docs/two.html | 12 +++++++++--- lib/js/push.js | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/dist/ratchet.js b/dist/ratchet.js index ca608ee..a746419 100644 --- a/dist/ratchet.js +++ b/dist/ratchet.js @@ -492,7 +492,7 @@ } data.title = head.querySelector('title'); - data.title = data.title && data.title.innerText.trim(); + data.title = data.title && data.title.innerText && data.title.innerText.trim(); if (options.transition) data = extendWithDom(data, '.content', body); else data.contents = body; diff --git a/docs/one.html b/docs/one.html index 1dcbf43..4e1b1f9 100644 --- a/docs/one.html +++ b/docs/one.html @@ -35,6 +35,9 @@ +
+

Push

+