1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-04 18:18:31 +00:00

3.5.134. Replaced Ember lookups with a utility function to make things easier in the future.

This commit is contained in:
SirStendec 2016-03-23 20:23:04 -04:00
parent d55af32b4e
commit ee1380f95d
29 changed files with 144 additions and 315 deletions

View file

@ -91,7 +91,7 @@ FFZ.settings_info.input_emoji = {
FFZ.prototype.setup_chat_input = function() {
this.log("Hooking the Ember Chat Input component.");
var Input = App.__container__.resolve('component:twitch-chat-input'),
var Input = utils.ember_resolve('component:twitch-chat-input'),
f = this;
if ( ! Input )
@ -99,7 +99,7 @@ FFZ.prototype.setup_chat_input = function() {
this._modify_chat_input(Input);
var views = this._roomv && this._roomv._viewRegistry || window.App && App.__container__.lookup('-view-registry:main') || Ember.View.views;
var views = this._roomv && this._roomv._viewRegistry || utils.ember_views();
for(var key in views) {
var v = views[key];
if ( v instanceof Input ) {