Permalink
Browse files

Remove every call to Travis.View

  • Loading branch information...
1 parent 1a2ce19 commit 1133636522fbc5dfeec0263103e731938fafcc46 @jeffkreeftmeijer jeffkreeftmeijer committed Jan 2, 2012
@@ -6,7 +6,7 @@ Travis.Controllers.Builds.List = Ember.ArrayController.extend({
init: function() {
Ember.run.later(this.updateTimes.bind(this), Travis.UPDATE_TIMES_INTERVAL);
- this.view = Travis.View.create({
+ this.view = Ember.View.create({
builds: this,
repositoryBinding: 'builds.repository',
templateName: 'app/templates/builds/list'
@@ -6,7 +6,7 @@ Travis.Controllers.Builds.Show = Ember.Object.extend({
Ember.run.later(this.updateTimes.bind(this), Travis.UPDATE_TIMES_INTERVAL);
var self = this;
- this.view = Travis.View.create({
+ this.view = Ember.View.create({
controller: this,
repositoryBinding: 'controller.repository',
contentBinding: 'controller.build',
@@ -6,7 +6,7 @@ Travis.Controllers.Jobs.Show = Ember.Object.extend({
Ember.run.later(this.updateTimes.bind(this), Travis.UPDATE_TIMES_INTERVAL);
var self = this;
- this.view = Travis.View.create({
+ this.view = Ember.View.create({
controller: this,
repositoryBinding: 'controller.repository',
contentBinding: 'controller.job',
@@ -1,5 +1,4 @@
//= require app/controllers/tabs.js
-//= require app/views.js
Travis.Controllers.Repositories.List = Ember.ArrayController.extend({
searchBox: Ember.TextField.create({
@@ -13,7 +12,7 @@ Travis.Controllers.Repositories.List = Ember.ArrayController.extend({
parent: this
});
- this.view = Travis.View.create({
+ this.view = Ember.View.create({
repositories: this,
templateName: 'app/templates/repositories/list'
});
@@ -1,5 +1,4 @@
//= require app/controllers/tabs.js
-//= require app/views.js
Travis.Controllers.Repositories.Show = Ember.Object.extend({
tabs: Travis.Controllers.Tabs.create({
@@ -17,7 +16,7 @@ Travis.Controllers.Repositories.Show = Ember.Object.extend({
init: function() {
this.tabs.parent = this;
- this.view = Travis.View.create({
+ this.view = Ember.View.create({
controller: this,
repositoryBinding: 'controller.repository',
buildBinding: 'controller.build',
@@ -1,6 +1,6 @@
Travis.Controllers.ServiceHooks = Ember.ArrayController.extend({
init: function() {
- this.view = Travis.View.create({
+ this.view = Ember.View.create({
service_hooks: this,
template: Ember.TEMPLATES['app/templates/service_hooks/list']
});
@@ -1,3 +1,5 @@
-// TODO can be removed
+// TODO it should be possible to remove this, but somehow that brakes
+// everything. It seems like nothing's using Travis.View anymore, but maybe
+// there is.
Travis.View = Ember.View.extend();
@@ -29,7 +29,7 @@ beforeEach(function() {
});
var createView = function(selector, options) {
- var view = Travis.View.create(options);
+ var view = Ember.View.create(options);
Ember.run(function() { view.appendTo(selector) });
return view;
};

0 comments on commit 1133636

Please sign in to comment.