createWithMixins is deprecated.

This commit is contained in:
Robin Ward 2016-04-29 16:50:52 -04:00
parent a50edb87ec
commit 1a3b63e07d
No known key found for this signature in database
GPG key ID: 0E091E2B4ED1B83D
3 changed files with 5 additions and 6 deletions

View file

@ -8,7 +8,7 @@ define('ember', ['exports'], function(__exports__) {
var _pluginCallbacks = [];
window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
window.Discourse = Ember.Application.extend(Discourse.Ajax, {
rootElement: '#main',
_docTitle: document.title,
__TAGS_INCLUDED__: true,
@ -168,7 +168,7 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
return this.get("currentAssetVersion");
}
})
});
}).create();
function RemovedObject(name) {
this._removedName = name;

View file

@ -2,7 +2,7 @@
let _jumpScheduled = false;
const rewrites = [];
const DiscourseURL = Ember.Object.createWithMixins({
const DiscourseURL = Ember.Object.extend({
// Used for matching a topic
TOPIC_REGEXP: /\/t\/([^\/]+)\/(\d+)\/?(\d+)?/,
@ -327,7 +327,6 @@ const DiscourseURL = Ember.Object.createWithMixins({
}
});
}
});
}).create();
export default DiscourseURL;

View file

@ -4,7 +4,7 @@ import SelectedPostsCount from 'discourse/mixins/selected-posts-count';
import Topic from 'discourse/models/topic';
var buildTestObj = function(params) {
return Ember.Object.createWithMixins(SelectedPostsCount, params || {});
return Ember.Object.extend(SelectedPostsCount).create(params || {});
};
test("without selectedPosts", function () {