mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-16 11:00:53 +00:00
3.5.134. Replaced Ember lookups with a utility function to make things easier in the future.
This commit is contained in:
parent
d55af32b4e
commit
ee1380f95d
29 changed files with 144 additions and 315 deletions
|
@ -39,7 +39,7 @@ FFZ.settings_info.portrait_mode = {
|
|||
if ( this.has_bttv )
|
||||
return;
|
||||
|
||||
var Layout = window.App && App.__container__.lookup('controller:layout');
|
||||
var Layout = utils.ember_lookup('controller:layout');
|
||||
if ( ! Layout )
|
||||
return;
|
||||
|
||||
|
@ -126,7 +126,7 @@ FFZ.settings_info.right_column_width = {
|
|||
if ( this.has_bttv )
|
||||
return;
|
||||
|
||||
var Layout = App.__container__.lookup('controller:layout');
|
||||
var Layout = utils.ember_lookup('controller:layout');
|
||||
if ( ! Layout )
|
||||
return;
|
||||
|
||||
|
@ -153,7 +153,7 @@ FFZ.prototype.setup_layout = function() {
|
|||
document.head.appendChild(s);
|
||||
|
||||
this.log("Hooking the Ember Layout controller.");
|
||||
var Layout = App.__container__.lookup('controller:layout'),
|
||||
var Layout = utils.ember_lookup('controller:layout'),
|
||||
f = this;
|
||||
|
||||
if ( ! Layout )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue