Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Last active December 19, 2015 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save eduardolundgren/5991877 to your computer and use it in GitHub Desktop.
Save eduardolundgren/5991877 to your computer and use it in GitHub Desktop.
_setPosition: function(val) {
var instance = this;
val.x = val.x || 0;
val.y = val.y || 0;
val.z = val.z || 0;
return val;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment