diff options
Diffstat (limited to 'public/assets/javascripts/ui/lib/view.js')
| -rw-r--r-- | public/assets/javascripts/ui/lib/view.js | 4 |
1 files changed, 4 insertions, 0 deletions
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() } }); |
