From 4d02975c65a819c15d38b3df56a454cbfebe636b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 12 Jun 2014 18:26:22 -0400 Subject: media upload working --- public/assets/javascripts/ui/lib/view.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public/assets/javascripts/ui/lib/view.js') diff --git a/public/assets/javascripts/ui/lib/view.js b/public/assets/javascripts/ui/lib/view.js index 823a75b..5fc6736 100644 --- a/public/assets/javascripts/ui/lib/view.js +++ b/public/assets/javascripts/ui/lib/view.js @@ -80,6 +80,10 @@ var View = (function($, _){ // an element from the `id`, `className` and `tagName` properties. _ensureElement: function() { this.setElement(_.result(this, 'el'), false); + }, + + preventDefault: function(e){ + e && e.preventDefault() } }); -- cgit v1.2.3-70-g09d2