Browse Source

fixed undo for layering

Michael 10 years ago
parent
commit
5f679128a9

+ 2 - 2
src/allplatforms/classes/WidgetLayerBottom.js

@@ -49,7 +49,7 @@ SC.loadPackage({ 'WidgetLayerBottom': {
                     return;
                 }
 
-                SuperGlue.get('history').do('actionHasStarted', self.do('createState'));
+                SuperGlue.get('history').do('actionHasStarted', this.do('createState'));
 
                 if(elements.length === 1){
 
@@ -133,7 +133,7 @@ SC.loadPackage({ 'WidgetLayerBottom': {
 
                 }
 
-                SuperGlue.get('history').do('actionHasSucceeded', self.do('createState'));
+                SuperGlue.get('history').do('actionHasSucceeded', this.do('createState'));
                 
             }
         },

+ 2 - 2
src/allplatforms/classes/WidgetLayerTop.js

@@ -51,7 +51,7 @@ SC.loadPackage({ 'WidgetLayerTop': {
                     return;
                 }
 
-                SuperGlue.get('history').do('actionHasStarted', self.do('createState'));
+                SuperGlue.get('history').do('actionHasStarted', this.do('createState'));
 
                 if(elements.length === 1){
 
@@ -137,7 +137,7 @@ SC.loadPackage({ 'WidgetLayerTop': {
 
                 }
 
-                SuperGlue.get('history').do('actionHasSucceeded', self.do('createState'));
+                SuperGlue.get('history').do('actionHasSucceeded', this.do('createState'));
 
 
             }