Remove ObjectController, Discouse Controllers + Presence

This commit is contained in:
Robin Ward
2015-08-11 12:27:07 -04:00
parent e2e3e7c0e0
commit 02a968bd27
130 changed files with 187 additions and 349 deletions

View File

@ -1,3 +1,5 @@
import { blank, present } from 'helpers/qunit-helpers';
module("lib:category-link");
import parseHTML from 'helpers/parse-html';

View File

@ -1,3 +1,4 @@
import { blank } from 'helpers/qunit-helpers';
import DiscourseURL from "discourse/lib/url";
import ClickTrack from "discourse/lib/click-track";

View File

@ -1,3 +1,5 @@
import { blank } from 'helpers/qunit-helpers';
module("Discourse.PreloadStore", {
setup: function() {
PreloadStore.store('bane', 'evil');

View File

@ -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;
}