fix unit tests

This commit is contained in:
Sam 2013-07-17 14:22:55 +10:00
parent 63cbe8dd17
commit 5a7e78f0fc
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ Discourse.SiteContentType = Discourse.Model.extend({});
Discourse.SiteContentType.reopenClass({
findAll: function() {
promise = new Em.Deferred();
var promise = new Em.Deferred();
Discourse.ajax("/admin/site_content_types").then(function(data) {
var contentTypes = Em.A();
data.forEach(function (ct) {