Skip to content

Instantly share code, notes, and snippets.

@jesuslerma
Created June 19, 2015 21:34
Show Gist options
  • Save jesuslerma/194c0f526505b48fae21 to your computer and use it in GitHub Desktop.
Save jesuslerma/194c0f526505b48fae21 to your computer and use it in GitHub Desktop.
module pattern example
var AdminEmpresas;
AdminEmpresas = (function () {
'use strict';
var init, bind;
init = function () {
$('#empresas_admin_table').dataTable({
sPaginationType: "full_numbers",
bProcessing: true,
bServerSide: true,
sAjaxSource: $('#empresas_admin_table').data('source')
});
};
bind = function () {
};
return {
init: init,
bind: bind
};
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment