Permalink
Browse files

do not inherit ic-swap-type

  • Loading branch information...
1 parent f0b7413 commit 3b0a377d03ebf44e1973ad394512a2b52d6b525b @carsongross carsongross committed Nov 22, 2016
Showing with 7 additions and 7 deletions.
  1. +2 −2 src/intercooler.js
  2. +3 −3 www/attributes/{ic-swap-type.html → ic-swap-style.html}
  3. +1 −1 www/docs.html
  4. +1 −1 www/reference.html
View
@@ -1186,12 +1186,12 @@ var Intercooler = Intercooler || (function() {
fireReadyStuff(target);
autoFocus(target);
} else {
- if (closestAttrValue(elt, 'ic-swap-style') == "prepend") {
+ if (getICAttribute(elt, 'ic-swap-style') == "prepend") {
prepend(target, contentToSwap);
processNodes(contentToSwap);
fireReadyStuff(target);
autoFocus(target);
- } else if (closestAttrValue(elt, 'ic-swap-style') == "append") {
+ } else if (getICAttribute(elt, 'ic-swap-style') == "append") {
append(target, contentToSwap);
processNodes(contentToSwap);
fireReadyStuff(target);
@@ -1,6 +1,6 @@
---
layout: default
-nav: attributes > ic-swap-type
+nav: attributes > ic-swap-style
---
<div class="container">
@@ -12,7 +12,7 @@
<h3>Summary</h3>
- <p>The <code>ic-swap-type</code> attribute tells intercooler how to swap content received from the server into
+ <p>The <code>ic-swap-style</code> attribute tells intercooler how to swap content received from the server into
the target element.</p>
<h3>Syntax</h3>
@@ -21,7 +21,7 @@
<h3>Dependencies</h3>
- <p><code>ic-swap-type</code> has no effect on dependencies.</p>
+ <p><code>ic-swap-style</code> has no effect on dependencies.</p>
</div>
</div>
View
@@ -916,7 +916,7 @@
to the more common client-side polling behavior.</p>
<p>If you wish to append or prepend, rather than replace the content, you can use the
- <a href="/attributes/ic-swap-type.html"><code>ic-swap-type</code></a> attribute to
+ <a href="/attributes/ic-swap-style.html"><code>ic-swap-style</code></a> attribute to
specify so.</p>
<h3>Server Sent Event Triggers</h3>
View
@@ -257,7 +257,7 @@
</tr>
<tr>
- <td><a href="/attributes/ic-swap-type.html">ic-swap-type</a></td>
+ <td><a href="/attributes/ic-swap-style.html">ic-swap-style</a></td>
<td>Allows you to specify the swap mechanism that intercooler will use with content received from the
server</td>
</tr>

0 comments on commit 3b0a377

Please sign in to comment.