mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
removing the 'remote' parameter from Scope::find -- it wasn't used anymore
This commit is contained in:
parent
95f3e2f79f
commit
138692183b
2 changed files with 4 additions and 4 deletions
|
@ -20,10 +20,10 @@
|
|||
return this;
|
||||
});
|
||||
// Look up a variable in lexical scope, or declare it if not found.
|
||||
Scope.prototype.find = function find(name, remote) {
|
||||
Scope.prototype.find = function find(name) {
|
||||
var found;
|
||||
found = this.check(name);
|
||||
if (found || remote) {
|
||||
if (found) {
|
||||
return found;
|
||||
}
|
||||
this.variables[name] = 'var';
|
||||
|
|
|
@ -16,9 +16,9 @@ Scope: exports.Scope: (parent, expressions, method) ->
|
|||
this
|
||||
|
||||
# Look up a variable in lexical scope, or declare it if not found.
|
||||
Scope::find: (name, remote) ->
|
||||
Scope::find: (name) ->
|
||||
found: @check name
|
||||
return found if found or remote
|
||||
return found if found
|
||||
@variables[name]: 'var'
|
||||
found
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue