Skip to content

Commit

Permalink
Address issue #130
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam A.G. Shamblin committed Apr 10, 2014
1 parent 29f4d48 commit fd470fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/retina.js
Expand Up @@ -60,12 +60,12 @@
root.RetinaImagePath = RetinaImagePath;

function RetinaImagePath(path, at_2x_path) {
this.path = path;
this.path = path || '';
if (typeof at_2x_path !== "undefined" && at_2x_path !== null) {
this.at_2x_path = at_2x_path;
this.perform_check = false;
} else {
this.at_2x_path = path.replace(/\.\w+$/, function(match) { return config.retinaImageSuffix + match; });
this.at_2x_path = this.path.replace(/\.\w+$/, function(match) { return config.retinaImageSuffix + match; });
this.perform_check = true;
}
}
Expand Down

0 comments on commit fd470fb

Please sign in to comment.