Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
3d944d41
Commit
3d944d41
authored
Sep 24, 2015
by
hy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将clipboard的监听从kityminder-core中移除,但保留事件接口,交由第三方来监听和实现clipboard事件
parent
e0eb38d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
module.js
src/core/module.js
+19
-14
No files found.
src/core/module.js
View file @
3d944d41
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment