Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from mateu-aguilo-bosch/return-message
Browse files Browse the repository at this point in the history
Could .add return the message just added?
  • Loading branch information
e0ipso committed Jul 22, 2014
2 parents 7cb0bd2 + d329b19 commit c533ff3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions message-center.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ MessageCenterModule.
}, options.timeout);
}
this.mcMessages.push(messageObject);
return messageObject;
},
remove: function (message) {
var index = this.mcMessages.indexOf(message);
Expand Down

0 comments on commit c533ff3

Please sign in to comment.