Fix 2645 form submit delegation

Fix #2645 form submit delegation.
lol yeah trying to be consistent with the rest of the codez


On Wed, Aug 27, 2014 at 9:12 AM, Arian Stolwijk <notifications@github.com>
wrote:

> In Source/Element/Element.Delegation.js:
>
> > @@ -57,7 +57,12 @@ var formObserver = function(type){
> >  		remove: function(self, uid){
> >  			var list = self.retrieve(_key + type + 'listeners', {})[uid];
> >  			if (list && list.forms) for (var i = list.forms.length; i--;){
> > -				list.forms[i].removeEvent(type, list.fns[i]);
> > +				// the form may have been destroyed, so it won't have the
> > +				// removeEvent method anymore. In that case the event was
> > +				// removed as well.
> > +				if (list.forms[i].removeEvent){
>
> Sure, it's exactly the same, except the optimal syntactical brackets...
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mootools/mootools-core/pull/2646/files#r16777060>.
>