forked from apotonick/apotomo
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
2b3f2ef
commit ff6d7ca
Showing
11 changed files
with
204 additions
and
73 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
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 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
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,8 @@ | ||
# Define your coffeescript code for the <%= class_name %> widget | ||
namespace "Widget.<%= ns_name %>" | ||
<%= class_name %>: | ||
class <%= class_name %> | ||
constructor : (@widget_id = widget_id) -> | ||
|
||
# add custom widget function here | ||
toggleActive: (options) -> |
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,23 @@ | ||
# [namespace.coffee](http://github.com/CodeCatalyst/namespace.coffee) v1.0.1 | ||
# Copyright (c) 2011-2012 [CodeCatalyst, LLC](http://www.codecatalyst.com/). | ||
# Open source under the [MIT License](http://en.wikipedia.org/wiki/MIT_License). | ||
|
||
# A lean namespace implementation for JavaScript written in [CoffeeScript](http://coffeescript.com/). | ||
|
||
# *Export the specified value(s) to the specified package name.* | ||
namespace = ( name, values ) -> | ||
# Export to `exports` for node.js or `window` for the browser. | ||
target = exports ? window | ||
# Nested packages may be specified using dot-notation, and are automatically created as needed. | ||
if name.length > 0 | ||
target = target[ subpackage ] ||= {} for subpackage in name.split( '.' ) | ||
# Export each value in the specified values Object to the specified package name by the value's key. | ||
target[ key ] = value for key, value of values | ||
# Return a reference to the specified namespace. | ||
return target | ||
|
||
# *Export the namespace function to global scope, using itself.* | ||
namespace( '', namespace: namespace ) | ||
|
||
namespace "Widget" | ||
namespace "Widgets" |
Oops, something went wrong.