Last active
December 10, 2015 22:38
-
-
Save nicolasmbatista/4503375 to your computer and use it in GitHub Desktop.
This file contains 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
// Here we are loading a "movie" module to use in our callback function | |
require(["movie"], function(Movie) { | |
var a = new Movie(); | |
a.setAttribute('name','terminator'); | |
console.log(a.getAttribute('name')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment