Remove private oauth variables from savemanager
authorAndy Allan <gravitystorm@gmail.com>
Tue, 19 Oct 2010 10:10:36 +0000 (10:10 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Tue, 19 Oct 2010 10:10:36 +0000 (10:10 +0000)
net/systemeD/potlatch2/save/SaveManager.as

index bb885e503a32912f66318968dbbc3aaebfd13bd8..55c412cff2a466f2fc5af0ba3d79a528211bdd94 100644 (file)
@@ -10,9 +10,6 @@ package net.systemeD.potlatch2.save {
     public class SaveManager {
     
         private static var instance:SaveManager = new SaveManager();
-        
-        private var accessToken:OAuthToken;
-        private var consumer:OAuthConsumer;
 
         public static function saveChanges():void {
             instance.save(instance.saveData);
@@ -42,7 +39,7 @@ package net.systemeD.potlatch2.save {
             PopUpManager.centerPopUp(oauthPanel);
             
             var listener:Function = function(event:Event):void {
-                accessToken = oauthPanel.accessToken;
+                var accessToken:OAuthToken = oauthPanel.accessToken;
                 if ( oauthPanel.shouldRemember ) {
                     var obj:SharedObject = SharedObject.getLocal("access_token");
                     obj.setProperty("oauth_token", accessToken.key);