This repository has been archived by the owner on Jan 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
240 changed files
with
35,295 additions
and
10,443 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -191,4 +191,4 @@ docs\deliverables\~$* | |
*.synctex.gz | ||
|
||
/coverage | ||
/coverage/* | ||
/.jhw-cache |
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
(exports ? this).Model = {} | ||
(exports ? this).Controller = {} | ||
(exports ? this).View = {} | ||
(exports ? this).View = {} | ||
(exports ? this).Helper = {} | ||
(exports ? this).Mixin = {} |
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
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
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,43 @@ | ||
# | ||
# | ||
class Helper.Mixable | ||
|
||
@ModuleKeyWords : [ 'extended', 'included' ] | ||
|
||
# Extends a class by adding the properties of the mixins to the class | ||
# | ||
# @param classmixins [Object*] the mixins to add | ||
# | ||
@extend: ( classmixins... ) -> | ||
|
||
for mixin in classmixins | ||
for key, value of mixin when key not in Helper.Mixable.ModuleKeyWords | ||
@[ key ] = value | ||
|
||
mixin.extended?.apply( @ ) | ||
this | ||
|
||
# Includes mixins to a class by adding the properties to the Prototype | ||
# | ||
# @param instancemixins [Object*] the mixins to add | ||
# | ||
@include: ( instancemixins... ) -> | ||
for mixin in instancemixins | ||
for key, value of mixin when key not in Helper.Mixable.ModuleKeyWords | ||
# Assign properties to the prototype | ||
@::[ key ] = value | ||
|
||
mixin.included?.apply( @ ) | ||
return this | ||
|
||
# Concerns automagically include and extend a class | ||
# | ||
# @param concerns [Object*] the mixins to add | ||
# | ||
@concern: ( concerns... ) -> | ||
|
||
for concern in concerns | ||
@include concern.InstanceMethods | ||
@extend concern.ClassMethods | ||
|
||
return this |
Oops, something went wrong.