Permalink
Browse files

skip ajaxify for old-style injection elements

  • Loading branch information...
chaoflow committed Mar 24, 2012
1 parent 0ff6614 commit c0eb697f4b0dd55dd55b65de804ee69e32c2c0fd
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/patterns/ajaxify.js
View
@@ -7,6 +7,11 @@ define([
var log = require('../logging').getLogger('ajaxify');
var init = function($el, opts) {
+ // skip elements that are covered by old-style injection
+ if ($el.is('.injection,[data-injection]')) {
+ log.debug('skipping element claimed by old injection', $el);
+ }
+
// ajaxify form
if ($el.is('form')) {
$el.ajaxForm({

0 comments on commit c0eb697

Please sign in to comment.