All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.plugins.jquery.subscribe.min.js Maven / Gradle / Ivy

There is a newer version: 5.0.5
Show newest version
'use strict';(function(d){var b,h,k,c;window._subscribe_topics||(b={},h={});k=function(a){return a.parentWindow||a.defaultView};d.fn.extend({createTopic:function(a){a&&!b[a]&&(b[a]={},b[a].objects={},b[a].objects.__noId__=[]);return this},destroyTopic:function(a){a&&b[a]&&d.each(b[a].objects,function(e,b){d.isArray(b)?d.each(b,function(e,b){d.isFunction(b)||b.unbind(a)}):b.unbind(a)});delete b[a];return this},subscribe:function(a,e,l,f){if(this[0]&&a&&e){this.createTopic(a);if(this.attr("id"))b[a].objects[this.attr("id")]=
this;else{var g=b[a].objects.__noId__;9===this[0].nodeType&&jQuery.each(g,function(a,e){if(!d.isFunction(e)&&9===e[0].nodeType&&k(this[0]).frameElement===k(e[0]).frameElement)return this});var m=!1;for(c=0;c




© 2015 - 2024 Weber Informatics LLC | Privacy Policy