Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.