mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
removing the 'remote' parameter from Scope::find -- it wasn't used anymore
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user