backplane-import/backplanejs — Issue #56: Controls are being added twice
Author: backplane-import
Created: 2011-10-15 02:52:24+00:00
State: open

### Imported from backplanejs Google Code [issue 56](http://code.google.com/p/backplanejs/issues/detail?id=56).

Reporter
mark.bir...@gmail.com

Date
25 May 2010 9:21:51 PM UTC

If we add the following to the top of Model.addControl() (in modelObj.js):

for (var i = 0; i < this.m_arControls.length; i++) {
if (oTarget == this.m_arControls[ i ]) {
YAHOO.log("Control already exists", "error");
}
}

then we get an error for nearly every control that should be there.

("Nearly every", because it definitely doesn't happen with group, and may not happen with others.)