Add class ve-ce-imageNode to all image nodes, also comment out mousedown event handler

Change-Id: I7565d8822bbe0547e731df1859cdde4ac78de6f2
This commit is contained in:
Inez Korczynski 2012-05-24 20:50:36 -07:00
parent d9bd47d8a6
commit 6017050b3f

View file

@ -10,14 +10,19 @@ ve.ce.ImageNode = function( model ) {
// Inheritance
ve.ce.LeafNode.call( this, 'image', model, $( '<img>' ) );
// DOM Changes
this.$.addClass( 've-ce-imageNode' );
// Properties
this.currentSource = null;
// Events
this.model.addListenerMethod( this, 'update', 'onUpdate' );
/*
this.$.on('mousedown', function() {
return false;
});
*/
// Intialization
this.onUpdate();