Permalink
Browse files

Move the url decoding where it belongs.

  • Loading branch information...
1 parent 676aef4 commit 9b9697da47d9ca6f436341c99cf95329ee1f9465 Wolfram Kriesing committed Dec 13, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −1 src/Config.js
  2. +1 −2 src/core.js
View
@@ -28,7 +28,7 @@ define('Config', function() {
var self = this;
parts.forEach(function(p){
var keyValue = p.split('=');
- if (typeof self[keyValue[0]] != 'undefined') self[keyValue[0]] = keyValue[1];
+ if (typeof self[keyValue[0]] != 'undefined') self[keyValue[0]] = decodeURIComponent(keyValue[1]);
});
}
}
View
@@ -26,7 +26,7 @@ define('core', [
*/
exports.runProps = function(config, listener) {
var once, i = 0;
- listener = typeof listener == 'undefined' ? new ConsoleListener() : listener;
+ listener = listener || new ConsoleListener();
var propsToRun = filterProps(config.searchString);
@@ -52,7 +52,6 @@ define('core', [
};
function filterProps(searchString) {
- searchString = decodeURIComponent(searchString);
var ret = [];
if (!searchString) {
// No search string given.

0 comments on commit 9b9697d

Please sign in to comment.