Skip to content

Commit

Permalink
Keyword new returned to the comments in places where it was removed…
Browse files Browse the repository at this point in the history
… by auto-replace.
  • Loading branch information
Vladimir Minkin committed Aug 13, 2023
1 parent e40f5d2 commit d344648
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/src/core/Controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ part of puremvc;
*
* - Remembering which [ICommand]s are intended to handle which [INotification]s.
* - Registering itself as an [IObserver] with the [View] for each [INotification] that it has an [ICommand] mapping for.
* - Creating a instance of the proper [ICommand] to handle a given [INotification] when notified by the [IView].
* - Creating a new instance of the proper [ICommand] to handle a given [INotification] when notified by the [IView].
* - Calling the [ICommand]'s [execute] method, passing in the [INotification].
*
* See [INotification], [ICommand]
Expand Down Expand Up @@ -78,7 +78,7 @@ class Controller implements IController {
* Register an [INotification] to [ICommand] mapping with the [Controller].
*
* - Param [noteName] - the name of the [INotification] to associate the [ICommand] with.
* - Param [commandFactory] - a function that creates a instance of the [ICommand].
* - Param [commandFactory] - a function that creates a new instance of the [ICommand].
*/
void registerCommand(String noteName, Function commandFactory) {
if (!hasCommand(noteName)) {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/interfaces/IController.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ part of puremvc;
*
* - Remembering which [ICommand]s are intended to handle which [INotification]s.
* - Registering itself as an [IObserver] with the [View] for each [INotification] that it has an [ICommand] mapping for.
* - Creating a instance of the proper [ICommand] to handle a given [INotification] when notified by the [IView].
* - Creating a new instance of the proper [ICommand] to handle a given [INotification] when notified by the [IView].
* - Calling the [ICommand]'s [execute] method, passing in the [INotification].
*
* See [INotification], [ICommand]
Expand All @@ -19,7 +19,7 @@ abstract class IController {
* Register an [INotification] to [ICommand] mapping with the [IController].
*
* - Param [noteName] - the name of the [INotification] to associate the [ICommand] with.
* - Param [commandFactory] - a function that creates a instance of the [ICommand].
* - Param [commandFactory] - a function that creates a new instance of the [ICommand].
*/
void registerCommand(String notificationName, Function commandFactory);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/interfaces/IFacade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ abstract class IFacade extends INotifier {
* Register an [INotification] to [ICommand] mapping with the [IController].
*
* - Param [noteName] - the name of the [INotification] to associate the [ICommand] with.
* - Param [commandFactory] - a function that creates a instance of the [ICommand].
* - Param [commandFactory] - a function that creates a new instance of the [ICommand].
*/
void registerCommand(String noteName, Function commandFactory);
void executeCommand(String noteName, [dynamic body = null, String? type]);
Expand Down
2 changes: 1 addition & 1 deletion lib/src/patterns/facade/Facade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class Facade implements IFacade {
* Register an [INotification] to [ICommand] mapping with the [Controller].
*
* - Param [noteName] - the name of the [INotification] to associate the [ICommand] with.
* - Param [commandFactory] - a function that creates a instance of the [ICommand].
* - Param [commandFactory] - a function that creates a new instance of the [ICommand].
*/
void registerCommand(String noteName, Function commandFactory) {
controller!.registerCommand(noteName, commandFactory);
Expand Down

0 comments on commit d344648

Please sign in to comment.