Bug 1033843 Change the Loop conversation window to use React-based views. Patch by dmose and nperriault. r=Standard8

This commit is contained in:
Dan Mosedale
2014-07-14 20:37:27 +01:00
parent 11d39000fa
commit b5bf2a96c8
19 changed files with 961 additions and 300 deletions

View File

@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
/* jshint esnext:true */
/* jshint newcap:false, esnext:true */
/* global loop:true */
var loop = loop || {};
@@ -164,10 +164,10 @@ loop.conversation = (function(OT, mozL10n) {
return;
}
this.loadView(
new loop.shared.views.ConversationView({
sdk: OT,
model: this._conversation
/*jshint newcap:false*/
this.loadReactComponent(sharedViews.ConversationView({
sdk: OT,
model: this._conversation
}));
},