]> git.wh0rd.org - tt-rss.git/blobdiff - lib/dojo/dom-construct.js
lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1
[tt-rss.git] / lib / dojo / dom-construct.js
index cbcb8c151d28518fafbac0019837a22bafda4776..c6bb9ecbd8146fc3fced38da5804178a21598354 100644 (file)
@@ -1,8 +1,8 @@
 /*
-       Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
+       Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
        Available via Academic Free License >= 2.1 OR the modified BSD license.
        see: http://dojotoolkit.org/license for details
 */
 
 //>>built
-define("dojo/dom-construct",["exports","./_base/kernel","./sniff","./_base/window","./dom","./dom-attr","./on"],function(_1,_2,_3,_4,_5,_6,on){var _7={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_8=/<\s*([\w\:]+)/,_9={},_a=0,_b="__"+_2._scopeName+"ToDomId";for(var _c in _7){if(_7.hasOwnProperty(_c)){var tw=_7[_c];tw.pre=_c=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}function _d(_e,_f){var _10=_f.parentNode;if(_10){_10.insertBefore(_e,_f);}};function _11(_12,ref){var _13=ref.parentNode;if(_13){if(_13.lastChild==ref){_13.appendChild(_12);}else{_13.insertBefore(_12,ref.nextSibling);}}};_1.toDom=function toDom(_14,doc){doc=doc||_4.doc;var _15=doc[_b];if(!_15){doc[_b]=_15=++_a+"";_9[_15]=doc.createElement("div");}_14+="";var _16=_14.match(_8),tag=_16?_16[1].toLowerCase():"",_17=_9[_15],_18,i,fc,df;if(_16&&_7[tag]){_18=_7[tag];_17.innerHTML=_18.pre+_14+_18.post;for(i=_18.length;i;--i){_17=_17.firstChild;}}else{_17.innerHTML=_14;}if(_17.childNodes.length==1){return _17.removeChild(_17.firstChild);}df=doc.createDocumentFragment();while((fc=_17.firstChild)){df.appendChild(fc);}return df;};_1.place=function place(_19,_1a,_1b){_1a=_5.byId(_1a);if(typeof _19=="string"){_19=/^\s*</.test(_19)?_1.toDom(_19,_1a.ownerDocument):_5.byId(_19);}if(typeof _1b=="number"){var cn=_1a.childNodes;if(!cn.length||cn.length<=_1b){_1a.appendChild(_19);}else{_d(_19,cn[_1b<0?0:_1b]);}}else{switch(_1b){case "before":_d(_19,_1a);break;case "after":_11(_19,_1a);break;case "replace":_1a.parentNode.replaceChild(_19,_1a);break;case "only":_1.empty(_1a);_1a.appendChild(_19);break;case "first":if(_1a.firstChild){_d(_19,_1a.firstChild);break;}default:_1a.appendChild(_19);}}return _19;};_1.create=function create(tag,_1c,_1d,pos){var doc=_4.doc;if(_1d){_1d=_5.byId(_1d);doc=_1d.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_1c){_6.set(tag,_1c);}if(_1d){_1.place(tag,_1d,pos);}return tag;};var _1e=_3("ie")?function(_1f){try{_1f.innerHTML="";}catch(e){for(var c;c=_1f.lastChild;){_20(c,_1f);}}}:function(_21){_21.innerHTML="";};_1.empty=function empty(_22){_1e(_5.byId(_22));};function _20(_23,_24){if(_23.firstChild){_1e(_23);}if(_24){_24.removeChild(_23);}};_1.destroy=function destroy(_25){_25=_5.byId(_25);if(!_25){return;}_20(_25,_25.parentNode);};});
\ No newline at end of file
+define("dojo/dom-construct",["exports","./_base/kernel","./sniff","./_base/window","./dom","./dom-attr"],function(_1,_2,_3,_4,_5,_6){var _7={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},_8=/<\s*([\w\:]+)/,_9={},_a=0,_b="__"+_2._scopeName+"ToDomId";for(var _c in _7){if(_7.hasOwnProperty(_c)){var tw=_7[_c];tw.pre=_c=="option"?"<select multiple=\"multiple\">":"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">";}}var _d;if(_3("ie")<=8){_d=function(_e){_e.__dojo_html5_tested="yes";var _f=_10("div",{innerHTML:"<nav>a</nav>",style:{visibility:"hidden"}},_e.body);if(_f.childNodes.length!==1){("abbr article aside audio canvas details figcaption figure footer header "+"hgroup mark meter nav output progress section summary time video").replace(/\b\w+\b/g,function(n){_e.createElement(n);});}_11(_f);};}function _12(_13,ref){var _14=ref.parentNode;if(_14){_14.insertBefore(_13,ref);}};function _15(_16,ref){var _17=ref.parentNode;if(_17){if(_17.lastChild==ref){_17.appendChild(_16);}else{_17.insertBefore(_16,ref.nextSibling);}}};_1.toDom=function toDom(_18,doc){doc=doc||_4.doc;var _19=doc[_b];if(!_19){doc[_b]=_19=++_a+"";_9[_19]=doc.createElement("div");}if(_3("ie")<=8){if(!doc.__dojo_html5_tested&&doc.body){_d(doc);}}_18+="";var _1a=_18.match(_8),tag=_1a?_1a[1].toLowerCase():"",_1b=_9[_19],_1c,i,fc,df;if(_1a&&_7[tag]){_1c=_7[tag];_1b.innerHTML=_1c.pre+_18+_1c.post;for(i=_1c.length;i;--i){_1b=_1b.firstChild;}}else{_1b.innerHTML=_18;}if(_1b.childNodes.length==1){return _1b.removeChild(_1b.firstChild);}df=doc.createDocumentFragment();while((fc=_1b.firstChild)){df.appendChild(fc);}return df;};_1.place=function place(_1d,_1e,_1f){_1e=_5.byId(_1e);if(typeof _1d=="string"){_1d=/^\s*</.test(_1d)?_1.toDom(_1d,_1e.ownerDocument):_5.byId(_1d);}if(typeof _1f=="number"){var cn=_1e.childNodes;if(!cn.length||cn.length<=_1f){_1e.appendChild(_1d);}else{_12(_1d,cn[_1f<0?0:_1f]);}}else{switch(_1f){case "before":_12(_1d,_1e);break;case "after":_15(_1d,_1e);break;case "replace":_1e.parentNode.replaceChild(_1d,_1e);break;case "only":_1.empty(_1e);_1e.appendChild(_1d);break;case "first":if(_1e.firstChild){_12(_1d,_1e.firstChild);break;}default:_1e.appendChild(_1d);}}return _1d;};var _10=_1.create=function _10(tag,_20,_21,pos){var doc=_4.doc;if(_21){_21=_5.byId(_21);doc=_21.ownerDocument;}if(typeof tag=="string"){tag=doc.createElement(tag);}if(_20){_6.set(tag,_20);}if(_21){_1.place(tag,_21,pos);}return tag;};function _22(_23){if("innerHTML" in _23){try{_23.innerHTML="";return;}catch(e){}}for(var c;c=_23.lastChild;){_23.removeChild(c);}};_1.empty=function empty(_24){_22(_5.byId(_24));};function _25(_26,_27){if(_26.firstChild){_22(_26);}if(_27){_3("ie")&&_27.canHaveChildren&&"removeNode" in _26?_26.removeNode(false):_27.removeChild(_26);}};var _11=_1.destroy=function _11(_28){_28=_5.byId(_28);if(!_28){return;}_25(_28,_28.parentNode);};});
\ No newline at end of file