kxu12348760 / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
0 stars 0 forks source link

Issue with multiple inicialization: #253

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
** What steps will reproduce the problem?
italicize ddcl 2 times

** What is the expected output? What do you see instead?
I want only one DDCL to be created for one select

** What is your environment?
-- DropDownCheckList version:
-- jQuery version:
-- jQuery UI version:
-- Browser and version:

** Please provide any additional information below/Please attach sample
html

I have fixed this bug by adding several lines in _init() method:

after line:
            var self = this, options = this.options;

I added these two lines:
            if (self.created || self.element[0].tagName !== "SELECT")
                return;
            self.created = true;

part ' || self.element[0].tagName !== "SELECT" ' ensure that DDCL will be 
implemented only on <select/> elements on page which is especially useful with 
class selectors. (and inheritance of css classes)

Original issue reported on code.google.com by drakce.d...@gmail.com on 28 Jun 2012 at 8:16

GoogleCodeExporter commented 8 years ago
Issue 255 has been merged into this issue.

Original comment by womohun...@ittrium.com on 16 Jul 2012 at 2:37

GoogleCodeExporter commented 8 years ago
Since another user has requested the same functionality, I will try to 
incorporate your changes into a future version.

Original comment by womohun...@ittrium.com on 23 Jul 2012 at 3:58