Use mw.hook for notifying cancel of settings window to modules

This avoids mandate of having 'cancel' method defined in settings module.
Also avoids looping of all modules while cancel is happening.

Change-Id: I87d0975f2ef1bdee61f71d66eabe3040b81876b8
This commit is contained in:
Santhosh Thottingal
2013-08-22 11:51:26 +05:30
parent 00e248e1f9
commit 4704cf5182
3 changed files with 7 additions and 9 deletions

View File

@@ -474,6 +474,8 @@
inputSettings.enableInputTools();
}
} );
mw.hook( 'mw.uls.settings.cancel' ).add( $.proxy( this.cancel, this ) );
},
/**