Changes between Initial Version and Version 1 of Ticket #16544, comment 5


Ignore:
Timestamp:
Mar 22, 2014, 5:29:34 AM (5 years ago)
Author:
vtsuper
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16544, comment 5

    initial v1  
    1 my last method has some bugs, this method should be better.
    2 
    3 
    4 {{{
    5 _setTargetAttr:function(target){
    6                                 if(typeof target === "string"){
    7                                         var w = registry.byId(target);
    8                                         this._set("target", w ? w.domNode : dom.byId(target));
    9                                 } else {
    10                                         //target is dijit
    11                                         this._set("target", target.domNode);
    12                                 }
    13                         }
    14 }}}
     1sorry wrong content~