Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
delinted
Browse files Browse the repository at this point in the history
  • Loading branch information
drewfish committed Aug 13, 2012
1 parent e0b71a9 commit a3fe2bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/lib/app/addons/rs/url.server.js
Expand Up @@ -37,7 +37,8 @@ YUI.add('addon-rs-url', function(Y, NAME) {
*/
initializer: function(config) {
var appConfig,
p, part,
p,
part,
defaults = {};

this.appRoot = config.appRoot;
Expand All @@ -55,8 +56,7 @@ YUI.add('addon-rs-url', function(Y, NAME) {
part = URL_PARTS[p];
if (this.config.hasOwnProperty(part)) {
this.config[part] = this.config[part].replace(/^\//g, '').replace(/\/$/g, '');
}
else {
} else {
this.config[part] = defaults[part] || '';
}
}
Expand Down

0 comments on commit a3fe2bf

Please sign in to comment.