Skip to content

Commit

Permalink
new autodafe
Browse files Browse the repository at this point in the history
  • Loading branch information
jifeon committed Sep 22, 2012
1 parent af8c935 commit 4139602
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions controllers/remote.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module.exports = Remote.inherits( autodafe.Controller );
module.exports = Remote.inherits( global.autodafe.Controller );

function Remote( params ) {
this._init( params );
}


Remote.prototype.show = function(params, client){
this.send_response( 'remote', client, {
obj_name : params.model || 'ember',
width : params.width || 700,
height : params.height || 400
Remote.prototype.show = function(response, request){
response.view_name('remote').send({
obj_name : request.params.model || 'ember',
width : request.params.width || 700,
height : request.params.height || 400
} );
}
6 changes: 3 additions & 3 deletions controllers/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ function SiteController( params ) {
}


SiteController.prototype.before_action = function( action, params, client ){
this.send_response( 'WebPlayer', client, {
SiteController.prototype.before_action = function( action, response, request ){
response.view_name( 'WebPlayer').send({
obj_name : action
} );
});

return false;
};
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var config = require('./config.js');
var autodafe = require('../autodafe_docs/node_modules/autodafe');
var autodafe = require('../autodafe_docs/node_modules/adwiki/node_modules/autodafe');

autodafe.create_application( config ).run();

0 comments on commit 4139602

Please sign in to comment.