Skip to content

Commit

Permalink
do not inherit ic-swap-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Carson Gross committed Nov 22, 2016
1 parent f0b7413 commit 3b0a377
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/intercooler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: default
nav: attributes > ic-swap-type
nav: attributes > ic-swap-style
---

<div class="container">
Expand All @@ -12,7 +12,7 @@ <h2><code>ic-swap-tyype</code> - The Swap Type Attribute</h2>

<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>
Expand All @@ -21,7 +21,7 @@ <h3>Syntax</h3>

<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>
Expand Down
2 changes: 1 addition & 1 deletion www/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ <h3>Server Sent Event Sources</h3>
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>
Expand Down
2 changes: 1 addition & 1 deletion www/reference.html
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ <h3><i class="fa fa-code"></i> HTML Attributes</h3>
</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>
Expand Down

0 comments on commit 3b0a377

Please sign in to comment.