aboutsummaryrefslogtreecommitdiffstats
path: root/ui/plugin.js
blob: 0f1d9b040a83567ccf1c47e2326178f9a90f27a8 (plain)
1
2
3
4
generated by cgit v1.2.3 (git 2.39.1) at 2025-08-04 12:11:50 +0000
 


ugins[ i ] || [];
			proto.plugins[ i ].push( [ option, set[ i ] ] );
		}
	},
	call: function( instance, name, args, allowDisconnected ) {
		var i,
			set = instance.plugins[ name ];

		if ( !set ) {
			return;
		}

		if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) ) {
			return;
		}

		for ( i = 0; i < set.length; i++ ) {
			if ( instance.options[ set[ i ][ 0 ] ] ) {
				set[ i ][ 1 ].apply( instance.element, args );
			}
		}
	}
};

} ) );