Skip to content

Instantly share code, notes, and snippets.

@cmilfont

cmilfont/a.js

Last active Dec 11, 2015
Embed
What would you like to do?
Ext.define("Sorteio", {
extend: "Ext.panel.Panel",
alias: 'widget.sorteio',
layout: "border",
/* ignora demais confs */
reiniciar: function(values) {
this.concorrentes.listar(values);
},
initComponent: function() {
this.callParent();
this.sorteioform.on("busca", this.reiniciar, this);
}
});
Ext.define("Sorteio", {
/* ignora confs */
initComponent: function() {
this.callParent();
this.sorteioform.on("busca",
this.concorrentes.listar,
this.concorrentes);
}
});
Ext.define("Sorteio", {
reiniciar: function(values) {
this.concorrentes.listar(values);
this.ganhadores.update("");
},
initComponent: function() {
this.callParent();
this.sorteioform.on("busca", this.reiniciar, this);
}
});
this.sorteioform.on("busca",
Ext.Function.createSequence(
this.concorrentes.listar,
Ext.Function.pass(this.ganhadores.update, ""),
this.ganhadores),
this.concorrentes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.