Permalink
Browse files

fixes dependencies

  • Loading branch information...
1 parent 4a16ddf commit 155b41668eaf99e764f8e5d0955d10fc0cfc1bff @dkln committed Sep 17, 2012
Showing with 11 additions and 11 deletions.
  1. +1 −1 src/bitmap.coffee
  2. +1 −1 src/display_container.coffee
  3. +2 −2 src/pixel_sprite.coffee
  4. +1 −1 src/shape.coffee
  5. +2 −2 src/sprite.coffee
  6. +1 −1 src/stage.coffee
  7. +1 −1 src/text_field.coffee
  8. +2 −2 src/utils.coffee
View
@@ -1,4 +1,4 @@
-class Bitmap extends DisplayObject
+class Bitmap extends CanvasLibrary.DisplayObject
constructor: (@imageData) ->
super()
@@ -2,7 +2,7 @@ class DisplayContainer
draw: (context, drawHitarea) ->
true
-include DisplayContainer, DisplayContainerMixin
+include DisplayContainer, CanvasLibrary.DisplayContainerMixin
@CanvasLibrary ||= {}
@CanvasLibrary.DisplayContainer = DisplayContainer
View
@@ -1,4 +1,4 @@
-class PixelSprite extends Shape
+class PixelSprite extends CanvasLibrary.Shape
@defaultColorPalette: [ 'rgba(0, 0, 0, 1)',
'rgba(170, 0, 0, 1)',
'rgba(0, 170, 0, 1)',
@@ -61,4 +61,4 @@ class PixelSprite extends Shape
y++
@CanvasLibrary ||= {}
-@CanvasLibrary.PixelSprite = PixelSprite
+@CanvasLibrary.PixelSprite = CanvasLibrary.PixelSprite
View
@@ -1,4 +1,4 @@
-class Shape extends DisplayObject
+class Shape extends CanvasLibrary.DisplayObject
constructor: ->
super()
@madeChanges = false
View
@@ -1,9 +1,9 @@
-class Sprite extends Shape
+class Sprite extends CanvasLibrary.Shape
constructor: ->
super()
@children = []
-include Sprite, DisplayContainerMixin
+include Sprite, CanvasLibrary.DisplayContainerMixin
@CanvasLibrary ||= {}
@CanvasLibrary.Sprite = Sprite
View
@@ -171,7 +171,7 @@ class Stage
positionChanged: ->
false
-include Stage, DisplayContainerMixin
+include Stage, CanvasLibrary.DisplayContainerMixin
@CanvasLibrary ||= {}
@CanvasLibrary.Stage = Stage
View
@@ -1,4 +1,4 @@
-class TextField extends DisplayObject
+class TextField extends CanvasLibrary.DisplayObject
constructor: ->
@text = ''
@textAlign = 'left'
View
@@ -20,11 +20,11 @@ class Utils
[left, top]
-extend = (obj, mixin) ->
+@extend = (obj, mixin) ->
for name, method of mixin
obj[name] = method
-include = (klass, mixin) ->
+@include = (klass, mixin) ->
extend klass.prototype, mixin
@CanvasLibrary ||= {}

0 comments on commit 155b416

Please sign in to comment.