Skip to content

Commit

Permalink
skip ajaxify for old-style injection elements
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoflow committed Mar 24, 2012
1 parent 0ff6614 commit c0eb697
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/patterns/ajaxify.js
Expand Up @@ -7,6 +7,11 @@ define([
var log = require('../logging').getLogger('ajaxify'); var log = require('../logging').getLogger('ajaxify');


var init = function($el, opts) { 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 // ajaxify form
if ($el.is('form')) { if ($el.is('form')) {
$el.ajaxForm({ $el.ajaxForm({
Expand Down

0 comments on commit c0eb697

Please sign in to comment.