Permalink
Browse files

Oprava volani split u undefined

  • Loading branch information...
1 parent d9a9480 commit 4169afa493f9bb653eb9e6417f0201930fbb84fb @JakubMrozek committed Jan 31, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 public/js/services.js
View
@@ -58,6 +58,7 @@ angular.module('zdrojakServices', ['ngResource'])
},
getParamsFromUrl: function(url) {
var params = {};
+ if (!url) return params;
url.split('@').forEach(function(rule){
var parts = rule.split(':');
params[parts[0]] = parts[1].split(',');

0 comments on commit 4169afa

Please sign in to comment.