vendor/assets/javascripts/webshims/shims/combos/30.js in webshims-rails-1.15.8 vs vendor/assets/javascripts/webshims/shims/combos/30.js in webshims-rails-1.15.9

- old
+ new

@@ -1232,11 +1232,11 @@ } }); })(); }); -webshims.register('form-core', function ($, webshims, window, document, undefined, options) { +;webshims.register('form-core', function($, webshims, window, document, undefined, options){ "use strict"; webshims.capturingEventPrevented = function(e){ if(!e._isPolyfilled){ var isDefaultPrevented = e.isDefaultPrevented; @@ -1371,12 +1371,10 @@ }); }; var transClass = ('transitionDelay' in document.documentElement.style) ? '' : ' no-transition'; var poCFG = webshims.cfg.wspopover; - var lReg = /</g; - var gReg = />/g; addModule('form-validation', $.extend({d: ['form-message']}, formExtras)); addModule('form-validators', $.extend({}, formExtras)); @@ -1499,11 +1497,11 @@ $.fn.getErrorMessage = function(key){ var message = ''; var elem = this[0]; if(elem){ - message = webshims.getContentValidationMessage(elem, false, key) || $.prop(elem, 'customValidationMessage') || ($.prop(elem, 'validationMessage') || '').replace(lReg, '&lt;').replace(gReg, '&gt;'); + message = webshims.getContentValidationMessage(elem, false, key) || $.prop(elem, 'customValidationMessage') || ($.prop(elem, 'validationMessage') || ''); } return message; }; $.event.special.valuevalidation = { @@ -1547,11 +1545,11 @@ if(document.readyState == 'complete'){ webshims.isReady('WINDOWLOAD', true); } }); -webshims.register('form-message', function ($, webshims, window, document, undefined, options) { +;webshims.register('form-message', function($, webshims, window, document, undefined, options){ "use strict"; if(options.lazyCustomMessages){ options.customMessages = true; } var validityMessages = webshims.validityMessages; @@ -1859,10 +1857,10 @@ }); }); }); }); -webshims.register('form-datalist', function ($, webshims, window, document, undefined, options) { +;webshims.register('form-datalist', function($, webshims, window, document, undefined, options){ "use strict"; var lazyLoad = function(name){ if(!name || typeof name != 'string'){ name = 'DOM'; }