You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2018/04/13 13:41:11 UTC

[GitHub] rafaelweingartner commented on issue #2572: Remove 'todb' in favor of 'encodeURIComponent'.

rafaelweingartner commented on issue #2572: Remove 'todb' in favor of 'encodeURIComponent'.
URL: https://github.com/apache/cloudstack/pull/2572#issuecomment-381138853
 
 
   Good question.  Why not use directly a function that everybody knows (everybody that works with javascript)? 
   
   When I first encountered it, I spent some time trying to find its documentation in the Javascript specs. Just then, I discovered that it was a wrapper created in CloudStack's javascript. This wrapper does not help us with anything. Moreover, it was not used consistently in the code base. There are quite a lot of places using the 'encodeURIComponent'.
   
   If we want to write less, we should first stop copying and pasting code ;)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services