forked from replit-archive/repl.it
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored app.coffee to 3 core modules and 2 extensions.
Base.coffee: contains nothing but the global REPLIT variable instantiation. Dom.coffee: Contains most DOM interactions and initialization. repl.coffee: Contains the basic application logic and is the main hub between the app and jsrepl. Emits events so modules can hook into. overlay.coffee: An extension that adds the overlay behavior, loading and rendering. Session.coffee: Contains all the logic concerning saving/persistance. Also converted all paths in index.html and styles to absolute paths.
- Loading branch information
Showing
10 changed files
with
761 additions
and
548 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Initialize the global REPLIT handler. | ||
|
||
# Core module. | ||
$ = jQuery | ||
REPLIT = {} | ||
REPLIT.$this = $(REPLIT) | ||
# Export globally. | ||
@REPLIT = REPLIT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.