Roo/state/Provider.js
authorAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:45:19 +0000 (17:45 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Apr 2016 09:45:19 +0000 (17:45 +0800)
Roo/state/Provider.js

index cab2afd..60791e4 100644 (file)
@@ -68,7 +68,9 @@ Roo.extend(Roo.state.Provider, Roo.util.Observable, {
     decodeValue : function(cookie){
         var re = /^(a|n|d|b|s|o)\:(.*)$/;
         var matches = re.exec(unescape(cookie));
-        if(!matches || !matches[1]) return; // non state cookie
+        if(!matches || !matches[1]) {
+            return; // non state cookie
+        }
         var type = matches[1];
         var v = matches[2];
         switch(type){