misc if simplification
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2446 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
5cad5c9981
commit
13904755b9
|
@ -1299,8 +1299,7 @@
|
|||
if (!btn.list) {
|
||||
// Add given events to button
|
||||
$.each(btn.events, function(name, func) {
|
||||
if (name == 'click') {
|
||||
if (btn.type == 'mode') {
|
||||
if (name == 'click' && btn.type == 'mode') {
|
||||
if (btn.includeWith) {
|
||||
button.bind(name, func);
|
||||
} else {
|
||||
|
@ -1317,9 +1316,6 @@
|
|||
} else {
|
||||
button.bind(name, func);
|
||||
}
|
||||
} else {
|
||||
button.bind(name, func);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue