Skip to content

Commit

Permalink
add domEvent for tree
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Aug 20, 2014
1 parent 761528d commit c5e2b4a
Show file tree
Hide file tree
Showing 8 changed files with 485 additions and 493 deletions.
10 changes: 5 additions & 5 deletions build/tree-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions build/tree.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright 2014, KISSY v1.47
MIT Licensed
build time: May 22 12:31
build time: Aug 20 18:40
*/
/*
Combined processedModules by KISSY Module Compiler:
Expand Down Expand Up @@ -229,7 +229,6 @@ KISSY.add("tree/node", ["node", "component/container", "./node-render"], functio
switch(keyCode) {
case KeyCode.ENTER:
return self.handleClickInternal(e);
break;
case KeyCode.HOME:
nodeToBeSelected = tree;
break;
Expand Down Expand Up @@ -298,7 +297,7 @@ KISSY.add("tree/node", ["node", "component/container", "./node-render"], functio
self.set("expanded", !expanded)
}else {
self.select();
self.fire("click")
self.fire("click", {domEvent:e})
}
return true
}, createChildren:function() {
Expand Down Expand Up @@ -483,7 +482,6 @@ KISSY.add("tree/check-node", ["node", "./node"], function(S, require) {
checkState = CHECK
}
self.set("checkState", checkState);
self.fire("click");
return true
}, _onSetCheckState:function(s) {
var self = this, parent = self.get("parent"), checkCount, i, c, cState, cs;
Expand Down
2 changes: 1 addition & 1 deletion build/tree/assets/dpl-min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/tree/assets/dpl.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright 2014, KISSY v1.47
MIT Licensed
build time: May 22 12:31
build time: Aug 20 18:40
*/
/**
* Tree style for KISSY
Expand Down
Loading

0 comments on commit c5e2b4a

Please sign in to comment.