Browse Source

Fixing a derp in push.

pull/187/merge
connors 11 years ago
parent
commit
899341f73a
  1. 2
      dist/ratchet.js
  2. 3
      docs/one.html
  3. 8
      docs/two.html
  4. 2
      lib/js/push.js

2
dist/ratchet.js vendored

@ -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;

3
docs/one.html

@ -35,6 +35,9 @@
<link rel="apple-touch-icon-precomposed" sizes="512x512" href="img/apple-touch-icon-512x512.png">
</head>
<body ontouchstart="">
<header class="bar-title">
<h1 class="title">Push</h1>
</header>
<div class="content">
<ul class="list">

8
docs/two.html

@ -35,10 +35,16 @@
<link rel="apple-touch-icon-precomposed" sizes="512x512" href="img/apple-touch-icon-512x512.png">
</head>
<body ontouchstart="">
<header class="bar-title">
<a class="button-prev" href="one.html" data-transition="slide-out">
Back
</a>
<h1 class="title">Push</h1>
</header>
<div class="content">
<ul class="list">
<li><a href="one.html" data-transition="slide-out">Go back</a>, or try your browser back button.</li>
<li>Tap the back button or try your browser back button.</li>
</ul>
</div>
</body>

2
lib/js/push.js

@ -397,7 +397,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;

Loading…
Cancel
Save