Skip to content

Instantly share code, notes, and snippets.

@nicolasmbatista
Created January 10, 2013 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasmbatista/4503580 to your computer and use it in GitHub Desktop.
Save nicolasmbatista/4503580 to your computer and use it in GitHub Desktop.
define("movie", function () {
//Constructor
var Movie = function () {
};
//Private vars and functions
var attributes = {};
Movie.prototype = {
constructor : Movie
,getAttribute : function (key){
return attributes[key];
}
,setAttribute : function (key,value){
attributes[key] = value;
}
};
return Movie;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment