Permalink
Browse files

Change tabs to spaces

  • Loading branch information...
1 parent 41b8587 commit cd3af966b6d63bf0075a1809917f70a7a1caf7a4 unknown committed Oct 6, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 _experimental/language/$_COOKIE.js
@@ -7,14 +7,14 @@ function $_COOKIE (name) {
// * example 1: var $myVar = $_COOKIE('test'); // Note the round brackets!
// * returns 1: 'hello'
- var i = 0, c = '', nameEQ = name + '=',
+ var i = 0, c = '', nameEQ = name + '=',
ca = document.cookie.split(';'),
cal = ca.length;
- for (i = 0; i < cal; i++) {
- c = ca[i].replace(/^ */, '');
- if (c.indexOf(nameEQ) === 0) {
+ for (i = 0; i < cal; i++) {
+ c = ca[i].replace(/^ */, '');
+ if (c.indexOf(nameEQ) === 0) {
return decodeURIComponent(c.slice(nameEQ.length).replace(/\+/g, '%20'));
}
- }
- return null;
+ }
+ return null;
}

0 comments on commit cd3af96

Please sign in to comment.