0
Я сделал много функций, таких как $ .redux.select и я хочу называть все функции, когда dialog_finished событие триггера
здесь коды в field_select.js файле
(function($){
"use strict";
$.redux = $.redux || {};
$(document).ready(function() {
$.redux.select();
});
$.redux.select = function(){
//some code here
}
})(jQuery);
здесь коды в redux.js файл
(function($){
"use strict";
$.redux = $.redux || {};
$(document).ready(function() {
var the_body = $(document);
the_body.on('dialog_finished', function(event, window){
//render all methods
$.each($.redux, function(method, value) {
/*******************************************************************/
my problem is below , how to call $.redux.select() using $.each
or there is better way
/*******************************************************************/
$.redux.$method();
});
});
});
})(jQuery);