Created
August 17, 2013 22:26
-
-
Save anonymous/6258993 to your computer and use it in GitHub Desktop.
object oriented grid spaces
This file contains hidden or 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
var gridSpace = function (height) { | |
this.height = height; | |
} | |
gridSpace.prototype = { | |
compareTo: function (height) { | |
if (this.height > height) return 1; | |
if (this.height < height) return -1; | |
return 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment