Skip to content

Commit

Permalink
changed comparison to ===
Browse files Browse the repository at this point in the history
  • Loading branch information
redbat committed Jun 14, 2012
1 parent 5112662 commit 4d157e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/js/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ Y.Loader.prototype = {
}
}

isLoadOptional = (typeof this.loadOptionalCfg[name] == "undefined")? this.loadOptional: this.loadOptionalCfg[name];
isLoadOptional = (this.loadOptionalCfg[name] === undefined)? this.loadOptional: this.loadOptionalCfg[name];
if (o && isLoadOptional) {
for (i = 0; i < o.length; i++) {
if (!hash[o[i]]) {
Expand Down

0 comments on commit 4d157e9

Please sign in to comment.