Skip to content

Commit 9f1d18a

Browse files
committed
working on cleaning up
1 parent e64221e commit 9f1d18a

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

OpenScript.js

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* The OpenScript Namespace
33
* @namespace {OpenScript}
44
*/
5-
var OpenScript = {
5+
let OpenScript = {
66
/**
77
* Used to Run Classes upon creation
88
*/
@@ -96,22 +96,6 @@ var OpenScript = {
9696
*/
9797
path = "";
9898

99-
/**
100-
* Create a route action
101-
*/
102-
RouteAction = class RouteAction {
103-
action;
104-
name;
105-
106-
middleware = () => true;
107-
108-
children = new Map();
109-
110-
run() {
111-
return this.action();
112-
}
113-
};
114-
11599
/**
116100
* Default Action
117101
* @type {function}
@@ -537,8 +521,6 @@ var OpenScript = {
537521
return this.router;
538522
}
539523
};
540-
541-
GroupedRoute = class GroupedRoute {};
542524
},
543525

544526
/**
@@ -2429,7 +2411,7 @@ var OpenScript = {
24292411
* Refreshes the whole context
24302412
*/
24312413
refresh() {
2432-
this.map.clear;
2414+
this.map.clear();
24332415
}
24342416
},
24352417

0 commit comments

Comments
 (0)