Commit 3d944d41 authored by hy's avatar hy

将clipboard的监听从kityminder-core中移除,但保留事件接口,交由第三方来监听和实现clipboard事件

parent e0eb38d7
...@@ -59,21 +59,26 @@ define(function(require, exports, module) { ...@@ -59,21 +59,26 @@ define(function(require, exports, module) {
* @Editor: Naixor * @Editor: Naixor
* @Date: 2015.9.20 * @Date: 2015.9.20
*/ */
if (name === 'ClipboardModule' && this.supportClipboardEvent && !kity.Browser.gecko) { /**
var on = function () { * 由于当前脑图解构问题,clipboard暂时全权交由玩不托管
var clipBoardReceiver = this.clipBoardReceiver || document; * @Editor: Naixor
* @Date: 2015.9.24
if (document.addEventListener) { */
clipBoardReceiver.addEventListener.apply(this, arguments); // if (name === 'ClipboardModule' && this.supportClipboardEvent && !kity.Browser.gecko) {
} else { // var on = function () {
arguments[0] = 'on' + arguments[0]; // var clipBoardReceiver = this.clipBoardReceiver || document;
clipBoardReceiver.attachEvent.apply(this, arguments);
} // if (document.addEventListener) {
} // clipBoardReceiver.addEventListener.apply(this, arguments);
for (var command in moduleDeals.clipBoardEvents) { // } else {
on(command, moduleDeals.clipBoardEvents[command]); // arguments[0] = 'on' + arguments[0];
} // clipBoardReceiver.attachEvent.apply(this, arguments);
}; // }
// }
// for (var command in moduleDeals.clipBoardEvents) {
// on(command, moduleDeals.clipBoardEvents[command]);
// }
// };
// command加入命令池子 // command加入命令池子
dealCommands = moduleDeals.commands; dealCommands = moduleDeals.commands;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment