Can someone explain this? I understand that the jQuery interface is the one that is predefined, but what is JQueryStatic?
I have the following:
(function($) { $.fn.disableBt = function() { $(this).attr('disabled', true); if ($.browser.msie && $.browser.version < 9) { $(this).addClass('disabled'); } } })(jQuery);
The only way to get typescript to find out about this was to add it to the jQuery interface as follows:
disableBt(); }
I tried adding it to jQueryStatic, but it didn't seem to work:
interface JQueryStatic { modal( options ); disableBt(); }
Here, the method parameters are defined in my modal format:
$.modal.defaults = { content: false, useIframe: false, ... ... var settings = $.extend({}, $.modal.defaults, options),
user1679941
source share