Skip to content

Commit 10173c0

Browse files
Merge pull request #263 from frank-weindel/feature/allow-periods-hash-value
Router: Allow periods in hash values
2 parents c0f60d1 + 5501047 commit 10173c0

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v4.6.1
4+
5+
*30 aug 2021*
6+
7+
- Fixed cleanup after closing an App
38
## v4.6.0
49

510
*16 aug 2021*

docs/changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v4.6.1
4+
5+
*30 aug 2021*
6+
7+
- Fixed cleanup after closing an App
38
## v4.6.0
49

510
*16 aug 2021*

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lightningjs/sdk",
3-
"version": "4.5.0",
3+
"version": "4.6.1",
44
"license": "Apache-2.0",
55
"scripts": {
66
"postinstall": "node ./scripts/postinstall.js",

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lightningjs/sdk",
3-
"version": "4.6.0",
3+
"version": "4.6.1",
44
"license": "Apache-2.0",
55
"scripts": {
66
"postinstall": "node ./scripts/postinstall.js",

src/Application/index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,7 @@ export default function(App, appData, platformSettings) {
160160
}
161161

162162
closeApp() {
163-
Log.info('Closing App')
164-
165-
Settings.clearSubscribers()
166-
Registry.clear()
163+
Log.info('Signaling App Close')
167164

168165
if (platformSettings.onClose && typeof platformSettings.onClose === 'function') {
169166
platformSettings.onClose(...arguments)
@@ -174,6 +171,10 @@ export default function(App, appData, platformSettings) {
174171

175172
close() {
176173
Log.info('Closing App')
174+
175+
Settings.clearSubscribers()
176+
Registry.clear()
177+
177178
this.childList.remove(this.tag('App'))
178179
this.cleanupFonts()
179180
// force texture garbage collect

src/Router/utils/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export const getValuesFromHash = (hash = '', path) => {
150150
// we already did the matching part
151151
path = stripRegex(path, '')
152152

153-
const getUrlParts = /(\/?:?[\w%\s:-]+)/g
153+
const getUrlParts = /(\/?:?[\w%\s:.-]+)/g
154154
const hashParts = hash.match(getUrlParts) || []
155155
const routeParts = path.match(getUrlParts) || []
156156
const getNamedGroup = /^\/:([\w-]+)\/?/

0 commit comments

Comments
 (0)