Sha256: fdad88963b4da0b4179c7fef0b42feeeb8d0cb778288bc221c663ce8d1cb96fc
Contents?: true
Size: 573 Bytes
Versions: 28
Compression:
Stored size: 573 Bytes
Contents
$.extend({ modules: function(object) { var array = []; $.each(object, function(property, names_only) { if (property.match(/^[ABCDEFGHIJKLMNOPQRSTUVWXYZ][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]+$/)) { array.push(names_only === true ? property : object[property]); } }); return array; }, initModules: function(namespace) { $(function() { $.each($.modules(namespace), function(i, module) { if (module.init) { module.init(); } $.initModules(module); }); }); } });
Version data entries
28 entries across 28 versions & 2 rubygems