misc if simplification

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2446 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Bruno Heridet
2013-02-20 21:45:10 +00:00
parent 5cad5c9981
commit 13904755b9

View File

@@ -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);
}
});
}