Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Undefined" na lista de Cidades no IE7 #8

Open
GoogleCodeExporter opened this issue May 27, 2015 · 1 comment
Open

"Undefined" na lista de Cidades no IE7 #8

GoogleCodeExporter opened this issue May 27, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Ao usar o broswer Internet Explorer 7, aparece uma cidade misteriosa em 
todos os estados, no final da lista, chamada "undefined".

Para corrigir basta adicionar o seguinte código na função "addOption", 
perto da linha 100.

A função ficará assim:

  addOption: function (elm, val, text) {
        // ESTE É O CÓDIGO NOVO A SER ADICIONADO  ----
        if (typeof text == 'undefined')  return;
        // FIM DO CÓDIGO ----
    var opt = document.createElement('option');
    opt.appendChild(document.createTextNode(text));
    opt.value = val;
    elm.appendChild(opt);
  },


Original issue reported on code.google.com by [email protected] on 14 Jan 2010 at 7:08

@GoogleCodeExporter
Copy link
Author

Poxa... Escrevi "browser" errado :D

Original comment by [email protected] on 14 Jan 2010 at 7:09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant