Created
August 19, 2011 23:48
-
-
Save joselo/1158335 to your computer and use it in GitHub Desktop.
Write Javascripts as an object
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 project; | |
$(function(){ | |
var Project = function(){ | |
var that = this; | |
var setupProject = function(){ | |
}; | |
that.someMethod = function(){ | |
}; | |
var project = setupProject(); | |
}; | |
project = new Project(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment