Skip to content

Commit

Permalink
Inline script handling changed
Browse files Browse the repository at this point in the history
If "type" is specified and not "text/javascript" then now ignored
  • Loading branch information
arvgta committed Jan 5, 2016
1 parent 919a721 commit c77ef59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ajaxify.js
Expand Up @@ -335,7 +335,8 @@ pO("scripts", { $s : false }, { canonical: true, inline: true, inlinehints: fals
}, },
alltxts: function ($s) { alltxts: function ($s) {
$s.each(function () { $s.each(function () {
var d = $(this).text(); var d = $(this).text(), t = $(this).attr('type');
if(t && !t.toLowerCase().iO('text/javascript')) return;
if (!d.iO(").ajaxify(") && ((inline && !_inlineskip(d)) || $(this).hasClass("ajaxy") || _inlinehints(d))) _addtext(d); if (!d.iO(").ajaxify(") && ((inline && !_inlineskip(d)) || $(this).hasClass("ajaxy") || _inlinehints(d))) _addtext(d);
}); });
}, },
Expand Down

0 comments on commit c77ef59

Please sign in to comment.