Skip to content

Commit a1610fa

Browse files
committed
💥 rename 'actionBarPosition' option to 'actionBarCorner'
1 parent 6ac3b94 commit a1610fa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import '@fa-repo/mobile-dev-environment/mobile-dev-environment.css';
5050

5151
new mobileDevEnvironment({
5252
stateId : 'my-multi-page-app',
53-
actionBarPosition : 'tl'
53+
actionBarCorner : 'tl'
5454
});
5555

5656
// app.html
@@ -77,7 +77,7 @@ new mobileDevEnvironment({
7777
<script defer>
7878
new mobileDevEnvironment({
7979
stateId : 'my-multi-page-app',
80-
actionBarPosition : 'tl'
80+
actionBarCorner : 'tl'
8181
});
8282
</script>
8383
</head>
@@ -106,7 +106,7 @@ new mobileDevEnvironment({
106106
<td valign="top"><code>['reload','tray']</code></td>
107107
</tr>
108108
<tr>
109-
<td valign="top"><code>actionBarPosition</code></td>
109+
<td valign="top"><code>actionBarCorner</code></td>
110110
<td valign="top">The actionBar position, top left <code>'tl'</code> or right <code>'tr'</code></td>
111111
<td valign="top"><code>string</code></td>
112112
<td valign="top"><code>'tr'</code></td>

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<img src="http://placekitten.com/g/740/420" alt="cute cat placeholder" />
2121
<div id="mde"></div>
2222
<script>
23-
mobileDevEnvironment({ actionBarPosition: "tr" });
23+
mobileDevEnvironment({ actionBarCorner: "tr" });
2424

2525
intentional_error;
2626
</script>

src/mde.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import tracer from "./utils/tracer.js";
1717
stateId: "global",
1818
actionBar: ["reload", "tray"],
1919
hardReload: true,
20-
actionBarPosition: "tr"
20+
actionBarCorner: "tr"
2121
});
2222

2323
const state = stately(options.stateId);
2424
state.set("action-bar", options.actionBar);
25-
state.set("action-bar.corner", options.actionBarPosition);
25+
state.set("action-bar.corner", options.actionBarCorner);
2626
state.set("reload.refreshCache", options.hardReload);
2727
state.setCache("tray.open", state.getCache("tray.open", true));
2828
state.setCache(

0 commit comments

Comments
 (0)