Skip to content

Commit

Permalink
Reverted commit f3cd8a6 because it broke support for jQuery < 1.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
NightOwl888 committed Jun 30, 2015
1 parent 09dd9f3 commit c7f0325
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions jquery.dirtyforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,18 +340,19 @@
settings.exitBound = true;
};

var ignoredByHelpers = function () {
var $ignored = $();
var getIgnoreAnchorSelector = function () {
var result = '';
$.each(settings.helpers, function (key, obj) {
if ("ignoreAnchorSelector" in obj) {
$ignored = $ignored.add(obj.ignoreAnchorSelector);
if (result.length > 0) { result += ','; }
result += obj.ignoreAnchorSelector;
}
});
return $ignored;
return result;
};

var aBindFn = function (ev) {
if (!$(this).is(ignoredByHelpers()) && !isDifferentTarget($(this))) {
if (!$(this).is(getIgnoreAnchorSelector()) && !isDifferentTarget($(this))) {
bindFn(ev);
}
};
Expand Down

0 comments on commit c7f0325

Please sign in to comment.