Skip to content

Instantly share code, notes, and snippets.

@djfrsn
Created September 21, 2015 00:50
Show Gist options
  • Select an option

  • Save djfrsn/a945963b01e1483580f3 to your computer and use it in GitHub Desktop.

Select an option

Save djfrsn/a945963b01e1483580f3 to your computer and use it in GitHub Desktop.
var inViewTool = function () {
var inViewToolName, names;
return {
setName: function ( s ) { return inViewToolName = s; },
name: function ( ) { return inViewToolName; },
setNames: function ( a ) { return names = a; },
names: function ( ) { return names; },
concatName: function ( n, m ) { return names[n] + ' ' + names[m]; }
};
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment