Skip to content

Commit

Permalink
💥 rename 'actionBarPosition' option to 'actionBarCorner'
Browse files Browse the repository at this point in the history
  • Loading branch information
francisashley committed Dec 16, 2019
1 parent 6ac3b94 commit a1610fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import '@fa-repo/mobile-dev-environment/mobile-dev-environment.css';

new mobileDevEnvironment({
stateId : 'my-multi-page-app',
actionBarPosition : 'tl'
actionBarCorner : 'tl'
});

// app.html
Expand All @@ -77,7 +77,7 @@ new mobileDevEnvironment({
<script defer>
new mobileDevEnvironment({
stateId : 'my-multi-page-app',
actionBarPosition : 'tl'
actionBarCorner : 'tl'
});
</script>
</head>
Expand Down Expand Up @@ -106,7 +106,7 @@ new mobileDevEnvironment({
<td valign="top"><code>['reload','tray']</code></td>
</tr>
<tr>
<td valign="top"><code>actionBarPosition</code></td>
<td valign="top"><code>actionBarCorner</code></td>
<td valign="top">The actionBar position, top left <code>'tl'</code> or right <code>'tr'</code></td>
<td valign="top"><code>string</code></td>
<td valign="top"><code>'tr'</code></td>
Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<img src="http://placekitten.com/g/740/420" alt="cute cat placeholder" />
<div id="mde"></div>
<script>
mobileDevEnvironment({ actionBarPosition: "tr" });
mobileDevEnvironment({ actionBarCorner: "tr" });

intentional_error;
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/mde.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import tracer from "./utils/tracer.js";
stateId: "global",
actionBar: ["reload", "tray"],
hardReload: true,
actionBarPosition: "tr"
actionBarCorner: "tr"
});

const state = stately(options.stateId);
state.set("action-bar", options.actionBar);
state.set("action-bar.corner", options.actionBarPosition);
state.set("action-bar.corner", options.actionBarCorner);
state.set("reload.refreshCache", options.hardReload);
state.setCache("tray.open", state.getCache("tray.open", true));
state.setCache(
Expand Down

0 comments on commit a1610fa

Please sign in to comment.