Skip to content

Instantly share code, notes, and snippets.

@migerh
Created January 30, 2012 14:54
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 migerh/1704824 to your computer and use it in GitHub Desktop.
Save migerh/1704824 to your computer and use it in GitHub Desktop.
just trying the webstorm gist integration
/**
* Assigns a value to a variable in the current scope.
* @param {String} vname Variable name
* @param {%} value Anything
* @see JXG.JessieCode#sstack
* @see JXG.JessieCode#scope
*/
letvar: function (vname, value) {
if (this.builtIn[vname]) {
this._warn('"' + vname + '" is a predefined value.');
}
this.sstack[this.scope][vname] = value;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment