Skip to content

Commit 65fcfc3

Browse files
committed
Merge pull request #524 from MDCox/API
Proper casing of API class names
2 parents fcde13c + 1852e70 commit 65fcfc3

5 files changed

Lines changed: 12 additions & 9 deletions

File tree

app/scripts/alchemy/API/create.coffee.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# You should have received a copy of the GNU Affero General Public License
1515
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17-
class Alchemy::create
17+
class Alchemy::Create
1818
constructor: (instance)->
1919
@a = instance
2020
nodes: (nodeMap, nodeMaps...) ->

app/scripts/alchemy/API/get.coffee.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# make js array method called ._state
1919
# @a.set. nest set inside of get
2020
21-
Alchemy::get = (instance) ->
21+
Alchemy::Get = (instance) ->
2222
a: instance
2323
_el: []
2424
_elType: null
@@ -120,4 +120,4 @@
120120
edge_id = "#{id}-#{target}"
121121
@a._edges[edge_id]
122122
else if id? and not target?
123-
@a._nodes[id]._adjacentEdges
123+
@a._nodes[id]._adjacentEdges

app/scripts/alchemy/API/remove.coffee.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# You should have received a copy of the GNU Affero General Public License
1515
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17-
class Alchemy::remove
17+
class Alchemy::Remove
1818
constructor: (instance) ->
1919
@a = instance
2020

app/scripts/alchemy/API/set.coffee.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
# You should have received a copy of the GNU Affero General Public License
1515
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17-
Alchemy::set =
18-
state: (key, value) -> alchemy.state.key = value
17+
Alchemy::Set = (instance)->
18+
a : instance
19+
state: (key, value) -> @a.state.key = value

app/scripts/alchemy/Alchemy.coffee.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ title: Anotated Source
3030
3131
@version = "#VERSION#"
3232
# give access to default conf
33-
@get = new @get @
34-
@remove = new @remove @
35-
@create = new @create @
33+
@get = new @Get @
34+
@remove = new @Remove @
35+
@create = new @Create @
36+
@set = new @Set @
37+
3638
@drawing =
3739
DrawEdge : DrawEdge @
3840
DrawEdges: DrawEdges @

0 commit comments

Comments
 (0)