Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10970)

Unified Diff: chrome/third_party/mock4js/examples/Publisher.js

Issue 347283004: Convert mock4js line endings to LF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/third_party/mock4js/examples/Publisher.js
diff --git a/chrome/third_party/mock4js/examples/Publisher.js b/chrome/third_party/mock4js/examples/Publisher.js
index 7405a061be2ffe94973746ccb9fa6bcd3c27e64b..901b6152dfcf0be25e12eb0cf7c6caacbdddc644 100644
--- a/chrome/third_party/mock4js/examples/Publisher.js
+++ b/chrome/third_party/mock4js/examples/Publisher.js
@@ -1,29 +1,29 @@
-/**
- * Subscriber
- */
-function Subscriber() {
-}
-
-Subscriber.prototype = {
- receive: function(message) {
- }
-}
-
-/**
- * Publisher
- */
-function Publisher() {
- this._subscribers = [];
-}
-
-Publisher.prototype = {
- publish: function(message) {
- for(var i=0; i<this._subscribers.length; i++) {
- var subscriber = this._subscribers[i];
- subscriber.receive(message);
- }
- },
- add: function(subscriber) {
- this._subscribers.push(subscriber);
- }
+/**
+ * Subscriber
+ */
+function Subscriber() {
+}
+
+Subscriber.prototype = {
+ receive: function(message) {
+ }
+}
+
+/**
+ * Publisher
+ */
+function Publisher() {
+ this._subscribers = [];
+}
+
+Publisher.prototype = {
+ publish: function(message) {
+ for(var i=0; i<this._subscribers.length; i++) {
+ var subscriber = this._subscribers[i];
+ subscriber.receive(message);
+ }
+ },
+ add: function(subscriber) {
+ this._subscribers.push(subscriber);
+ }
}
« no previous file with comments | « chrome/third_party/mock4js/examples/PriceServiceTest.html ('k') | chrome/third_party/mock4js/examples/PublisherTest.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698