KOSASIH / SilkRoad

Found empty functions JS-0057
Anti-pattern
Minor
8 months agoa year old
2680			input = input || $.trim(self.$control_input.val() || '');
2681	
2682			var callback = arguments[arguments.length - 1];
2683			if (typeof callback !== 'function') callback = function() {};2684	
2685			if (typeof triggerDropdown !== 'boolean') {
2686				triggerDropdown = true;
 710	};
 711	
 712	
 713	var MicroEvent = function() {}; 714	MicroEvent.prototype = {
 715		on: function(event, fct){
 716			this._events = this._events || {};
Unexpected empty function
2044			input = input || $.trim(self.$control_input.val() || '');
2045	
2046			var callback = arguments[arguments.length - 1];
2047			if (typeof callback !== 'function') callback = function() {};2048	
2049			if (typeof triggerDropdown !== 'boolean') {
2050				triggerDropdown = true;
Unexpected empty function
  74	};
  75	
  76	
  77	var MicroEvent = function() {};  78	MicroEvent.prototype = {
  79		on: function(event, fct){
  80			this._events = this._events || {};
Unexpected empty function 'CloseOnSelect'
4428S2.define('select2/dropdown/closeOnSelect',[
4429
4430], function () {
4431  function CloseOnSelect () { }4432
4433  CloseOnSelect.prototype.bind = function (decorated, container, $container) {
4434    var self = this;