Hybrid View
-
27 Jun 2011 9:38 PM #1
Bug in CliOptions.js
Bug in CliOptions.js
In CliOptions.js (SenchaSDKTools-1.2.1\command\src folder), there is a bug in parse method. We have the following statement starting at line 126:
match[1].split('').forEach(function(a) {
opt = this.get(a);
if (opt) {
opt.toggled = true;
}
});
Inside the forEach, we are calling this.get, but the scope is different, so we should pass correct scope to the function.
The statement should instead be:
match[1].split('').forEach(function(a) {
opt = this.get(a);
if (opt) {
opt.toggled = true;
}
}, this);
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote