Backed out changeset 772c30e9e812 (bug 944255) for mochitest-mc orange.

This commit is contained in:
Ryan VanderMeulen 2013-12-09 15:54:27 -05:00
Родитель 025d9c3084
Коммит f22ee0eab8
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -27,18 +27,18 @@ function makeURI(aURL, aOriginCharset, aBaseURI) {
function View(aSet) {
this._set = aSet;
this._set.controller = this;
this._window = aSet.ownerDocument.defaultView;
this.onResize = () => this._adjustDOMforViewState();
this._window.addEventListener("resize", this.onResize);
this.viewStateObserver = {
observe: (aSubject, aTopic, aData) => this._adjustDOMforViewState(aData)
};
Services.obs.addObserver(this.viewStateObserver, "metro_viewstate_changed", false);
ColorUtils.init();
this._adjustDOMforViewState();
}
View.prototype = {
destruct: function () {
this._window.removeEventListener("resize", this.onResize);
Services.obs.removeObserver(this.viewStateObserver, "metro_viewstate_changed");
},
_adjustDOMforViewState: function _adjustDOMforViewState(aState) {