Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
runat-1128988: Remote the javascript type correctly.
Browse files Browse the repository at this point in the history
Can't transfer the global remotely.

Signed-off-by: Joe Walker <[email protected]>
  • Loading branch information
joewalker committed Mar 19, 2015
1 parent 04f795b commit 1053f7d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/gcli/types/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ function JavascriptType(typeSpec) {

JavascriptType.prototype = Object.create(Type.prototype);

JavascriptType.prototype.getSpec = function() {
return 'javascript';
JavascriptType.prototype.getSpec = function(commandName, paramName) {
return {
name: 'remote',
paramName: paramName
};
};

JavascriptType.prototype.stringify = function(value, context) {
Expand Down

1 comment on commit 1053f7d

@bgrins
Copy link

@bgrins bgrins commented on 1053f7d Mar 19, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r+

Please sign in to comment.