Implements toolbar disabling.
This commit is contained in:
@@ -929,35 +929,12 @@ mindplot.Topic = new Class({
|
||||
var model = this.getModel();
|
||||
var isConnected = model.isConnected();
|
||||
|
||||
// Check consitency...
|
||||
// Check consistency...
|
||||
if ((isConnected && !line) || (!isConnected && line)) {
|
||||
// $assert(false,'Illegal state exception.');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* type:
|
||||
* onfocus
|
||||
*/
|
||||
addEvent : function(type, listener) {
|
||||
// Translate to web 2d events ...
|
||||
if (type == 'onfocus') {
|
||||
type = 'mousedown';
|
||||
}
|
||||
|
||||
var shape = this.get2DElement();
|
||||
shape.addEvent(type, listener);
|
||||
},
|
||||
|
||||
removeEvent : function(type, listener) {
|
||||
// Translate to web 2d events ...
|
||||
if (type == 'onfocus') {
|
||||
type = 'mousedown';
|
||||
}
|
||||
var shape = this.get2DElement();
|
||||
shape.removeEvent(type, listener);
|
||||
},
|
||||
|
||||
|
||||
_setSize : function(size) {
|
||||
$assert(size, "size can not be null");
|
||||
|
Reference in New Issue
Block a user