From 296967d39bb718126e0b9fe6c6ad06922a7f7715 Mon Sep 17 00:00:00 2001 From: Ilkka Huotari Date: Sun, 21 Sep 2014 05:03:44 +0000 Subject: [PATCH] don't set on forms --- lib/markup.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/markup.js b/lib/markup.js index c0fc143..6c3dafe 100644 --- a/lib/markup.js +++ b/lib/markup.js @@ -21,12 +21,6 @@ markup.on('element:a', function(template) { } }); -markup.on('element:form', function(template) { - if (hasListenerFor(template, 'submit')) { - addListener(template, 'submit', '$preventDefault($event)'); - } -}); - function hasListenerFor(template, eventName) { var hooks = template.hooks; if (!hooks) return false;