aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/controllers/clipboard-controller.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/js/controllers/clipboard-controller.js b/js/controllers/clipboard-controller.js
index 5e63e424..129e1f89 100644
--- a/js/controllers/clipboard-controller.js
+++ b/js/controllers/clipboard-controller.js
@@ -133,8 +133,20 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component
133 this.pasteCounter++; 133 this.pasteCounter++;
134 134
135 if(ninjaData){ 135 if(ninjaData){
136 if(this.copiedObjects.copy){this.pasteFromCopy();} 136 if(this.copiedObjects.copy){
137 else if(this.copiedObjects.cut){this.pasteFromCut();} 137 try{
138 this.pasteFromCopy();
139 }catch(e){
140 console.log(""+e.stack);
141 }
142 }
143 else if(this.copiedObjects.cut){
144 try{
145 this.pasteFromCut();
146 }catch(e){
147 console.log(""+e.stack);
148 }
149 }
138 } 150 }
139 else{ 151 else{
140 152