mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 08:34:41 +08:00
Remove ObjectController, Discouse Controllers + Presence
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { blank, present } from 'helpers/qunit-helpers';
|
||||
|
||||
module("lib:category-link");
|
||||
|
||||
import parseHTML from 'helpers/parse-html';
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { blank } from 'helpers/qunit-helpers';
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import ClickTrack from "discourse/lib/click-track";
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
import { blank } from 'helpers/qunit-helpers';
|
||||
|
||||
module("Discourse.PreloadStore", {
|
||||
setup: function() {
|
||||
PreloadStore.store('bane', 'evil');
|
||||
|
@ -1,3 +1,5 @@
|
||||
import { blank } from 'helpers/qunit-helpers';
|
||||
|
||||
module("Discourse.Utilities");
|
||||
|
||||
var utils = Discourse.Utilities;
|
||||
@ -123,8 +125,8 @@ test("avatarUrl", function() {
|
||||
});
|
||||
|
||||
var setDevicePixelRatio = function(value) {
|
||||
if(Object.defineProperty) {
|
||||
Object.defineProperty(window, "devicePixelRatio", { value: 2 })
|
||||
if (Object.defineProperty && !window.hasOwnProperty('devicePixelRatio')) {
|
||||
Object.defineProperty(window, "devicePixelRatio", { value: 2 });
|
||||
} else {
|
||||
window.devicePixelRatio = value;
|
||||
}
|
||||
|
Reference in New Issue
Block a user