diff options
Diffstat (limited to 'assets/js/app.js')
| -rw-r--r-- | assets/js/app.js | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/assets/js/app.js b/assets/js/app.js index 89a20f4..6cba5f3 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -1,17 +1,15 @@ -(function($) { - var App = function() { - this.initialize = function() { - var sample_editor = new SampleEditor(); - - sample_editor.initialize(); - }; +$.embedly.defaults.key = 'e2dcb7bae5a443bfbb5f726daf05549f'; +ClipPlay.App = new Marionette.Application(); - return this; - }; +ClipPlay.App.addInitializer(function(options) { + var samples_collection = new ClipPlay.Collections.Samples(); + var sample_editor_view = new ClipPlay.Views.SampleEditor({ + collection: samples_collection + }); + sample_editor_view.render(); + $('#samples').append(sample_editor_view.$el); +}); - var app = new App(); - app.initialize(); -})(jQuery); -$.embedly.defaults.key = 'e2dcb7bae5a443bfbb5f726daf05549f'; +ClipPlay.App.start();
\ No newline at end of file |
