Export all coffee classes with @

This commit is contained in:
Ciro Santilli
2014-10-20 23:03:33 +02:00
parent 72abe9f679
commit c0c8dccf2e
27 changed files with 29 additions and 84 deletions
+1 -3
View File
@@ -1,7 +1,5 @@
class CommitFile
class @CommitFile
constructor: (file) ->
if $('.image', file).length
new ImageFile(file)
@CommitFile = CommitFile
@@ -1,4 +1,4 @@
class ImageFile
class @ImageFile
# Width where images must fits in, for 2-up this gets divided by 2
@availWidth = 900
@@ -124,5 +124,3 @@ class ImageFile
else
img.on 'load', =>
callback.call(this, domImg.naturalWidth, domImg.naturalHeight)
@ImageFile = ImageFile