1
0
Fork 0
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:
Jeremy Ashkenas 2010-02-17 23:26:03 -05:00
parent 95f3e2f79f
commit 138692183b
2 changed files with 4 additions and 4 deletions

View file

@ -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';

View file

@ -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