Merge "ce.ProtectedNode: Use surface initialize event instead of toolbarPosition"

This commit is contained in:
jenkins-bot 2013-07-31 22:02:21 +00:00 committed by Gerrit Code Review
commit 41af854ae4

View file

@ -79,7 +79,7 @@ ve.ce.ProtectedNode.prototype.onProtectedSetup = function () {
this.getRoot().getSurface().getModel()
.connect( this, { 'change': 'onSurfaceModelChange' } );
this.getRoot().getSurface().getSurface()
.connect( this, { 'toolbarPosition': 'positionPhantoms' } );
.connect( this, { 'position': 'positionPhantoms' } );
// Shields
this.$.add( this.$.find( '*' ) ).each( function () {
@ -115,7 +115,7 @@ ve.ce.ProtectedNode.prototype.onProtectedTeardown = function () {
this.root.getSurface().getModel()
.disconnect( this, { 'change': 'onSurfaceModelChange' } );
this.getRoot().getSurface().getSurface()
.disconnect( this, { 'toolbarPosition': 'positionPhantoms' } );
.disconnect( this, { 'position': 'positionPhantoms' } );
// Shields
this.$shields.remove();