From 6887a0f57307820b097b51aee952c555bcf69024 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 20 Jan 2017 12:29:59 -0500 Subject: lib: Upgrade Dojo and Dijit from 1.8.3 to 1.12.1 The itemNode and expandoNode elements have changed from img to span (https://bugs.dojotoolkit.org/ticket/16699), so we now put our tree icons inside them rather than replacing them. Signed-off-by: Anders Kaseorg --- lib/dojo/on.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/dojo/on.js') diff --git a/lib/dojo/on.js b/lib/dojo/on.js index a5ccc9c94..d9f6bacc8 100644 --- a/lib/dojo/on.js +++ b/lib/dojo/on.js @@ -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/on",["./has!dom-addeventlistener?:./aspect","./_base/kernel","./has"],function(_1,_2,_3){"use strict";if(1){var _4=window.ScriptEngineMajorVersion;_3.add("jscript",_4&&(_4()+ScriptEngineMinorVersion()/10));_3.add("event-orientationchange",_3("touch")&&!_3("android"));_3.add("event-stopimmediatepropagation",window.Event&&!!window.Event.prototype&&!!window.Event.prototype.stopImmediatePropagation);}var on=function(_5,_6,_7,_8){if(typeof _5.on=="function"&&typeof _6!="function"){return _5.on(_6,_7);}return on.parse(_5,_6,_7,_9,_8,this);};on.pausable=function(_a,_b,_c,_d){var _e;var _f=on(_a,_b,function(){if(!_e){return _c.apply(this,arguments);}},_d);_f.pause=function(){_e=true;};_f.resume=function(){_e=false;};return _f;};on.once=function(_10,_11,_12,_13){var _14=on(_10,_11,function(){_14.remove();return _12.apply(this,arguments);});return _14;};on.parse=function(_15,_16,_17,_18,_19,_1a){if(_16.call){return _16.call(_1a,_15,_17);}if(_16.indexOf(",")>-1){var _1b=_16.split(/\s*,\s*/);var _1c=[];var i=0;var _1d;while(_1d=_1b[i++]){_1c.push(_18(_15,_1d,_17,_19,_1a));}_1c.remove=function(){for(var i=0;i<_1c.length;i++){_1c[i].remove();}};return _1c;}return _18(_15,_16,_17,_19,_1a);};var _1e=/^touch/;function _9(_1f,_20,_21,_22,_23){var _24=_20.match(/(.*):(.*)/);if(_24){_20=_24[2];_24=_24[1];return on.selector(_24,_20).call(_23,_1f,_21);}if(_3("touch")){if(_1e.test(_20)){_21=_25(_21);}if(!_3("event-orientationchange")&&(_20=="orientationchange")){_20="resize";_1f=window;_21=_25(_21);}}if(_26){_21=_26(_21);}if(_1f.addEventListener){var _27=_20 in _28,_29=_27?_28[_20]:_20;_1f.addEventListener(_29,_21,_27);return {remove:function(){_1f.removeEventListener(_29,_21,_27);}};}_20="on"+_20;if(_2a&&_1f.attachEvent){return _2a(_1f,_20,_21);}throw new Error("Target must be an event emitter");};on.selector=function(_2b,_2c,_2d){return function(_2e,_2f){var _30=typeof _2b=="function"?{matches:_2b}:this,_31=_2c.bubble;function _32(_33){_30=_30&&_30.matches?_30:_2.query;while(!_30.matches(_33,_2b,_2e)){if(_33==_2e||_2d===false||!(_33=_33.parentNode)||_33.nodeType!=1){return;}}return _33;};if(_31){return on(_2e,_31(_32),_2f);}return on(_2e,_2c,function(_34){var _35=_32(_34.target);return _35&&_2f.call(_35,_34);});};};function _36(){this.cancelable=false;};function _37(){this.bubbles=false;};var _38=[].slice,_39=on.emit=function(_3a,_3b,_3c){var _3d=_38.call(arguments,2);var _3e="on"+_3b;if("parentNode" in _3a){var _3f=_3d[0]={};for(var i in _3c){_3f[i]=_3c[i];}_3f.preventDefault=_36;_3f.stopPropagation=_37;_3f.target=_3a;_3f.type=_3b;_3c=_3f;}do{_3a[_3e]&&_3a[_3e].apply(_3a,_3d);}while(_3c&&_3c.bubbles&&(_3a=_3a.parentNode));return _3c&&_3c.cancelable&&_3c;};var _28={};if(!_3("event-stopimmediatepropagation")){var _40=function(){this.immediatelyStopped=true;this.modified=true;};var _26=function(_41){return function(_42){if(!_42.immediatelyStopped){_42.stopImmediatePropagation=_40;return _41.apply(this,arguments);}};};}if(_3("dom-addeventlistener")){_28={focusin:"focus",focusout:"blur"};on.emit=function(_43,_44,_45){if(_43.dispatchEvent&&document.createEvent){var _46=_43.ownerDocument.createEvent("HTMLEvents");_46.initEvent(_44,!!_45.bubbles,!!_45.cancelable);for(var i in _45){var _47=_45[i];if(!(i in _46)){_46[i]=_45[i];}}return _43.dispatchEvent(_46)&&_46;}return _39.apply(on,arguments);};}else{on._fixEvent=function(evt,_48){if(!evt){var w=_48&&(_48.ownerDocument||_48.document||_48).parentWindow||window;evt=w.event;}if(!evt){return evt;}if(_49&&evt.type==_49.type){evt=_49;}if(!evt.target){evt.target=evt.srcElement;evt.currentTarget=(_48||evt.srcElement);if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(!evt.stopPropagation){evt.stopPropagation=_4a;evt.preventDefault=_4b;}switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;_4c(evt);break;}}return evt;};var _49,_4d=function(_4e){this.handle=_4e;};_4d.prototype.remove=function(){delete _dojoIEListeners_[this.handle];};var _4f=function(_50){return function(evt){evt=on._fixEvent(evt,this);var _51=_50.call(this,evt);if(evt.modified){if(!_49){setTimeout(function(){_49=null;});}_49=evt;}return _51;};};var _2a=function(_52,_53,_54){_54=_4f(_54);if(((_52.ownerDocument?_52.ownerDocument.parentWindow:_52.parentWindow||_52.window||window)!=top||_3("jscript")<5.8)&&!_3("config-_allow_leaks")){if(typeof _dojoIEListeners_=="undefined"){_dojoIEListeners_=[];}var _55=_52[_53];if(!_55||!_55.listeners){var _56=_55;_55=Function("event","var callee = arguments.callee; for(var i = 0; i-1){_20=_1b.split(/\s*,\s*/);}}if(_20){var _21=[];var i=0;var _22;while(_22=_20[i++]){_21.push(on.parse(_1a,_22,_1c,_1d,_1e,_1f));}_21.remove=function(){for(var i=0;i<_21.length;i++){_21[i].remove();}};return _21;}return _1d(_1a,_1b,_1c,_1e,_1f);};var _23=/^touch/;function _e(_24,_25,_26,_27,_28){var _29=_25.match(/(.*):(.*)/);if(_29){_25=_29[2];_29=_29[1];return on.selector(_29,_25).call(_28,_24,_26);}if(_3("touch")){if(_23.test(_25)){_26=_2a(_26);}if(!_3("event-orientationchange")&&(_25=="orientationchange")){_25="resize";_24=window;_26=_2a(_26);}}if(_2b){_26=_2b(_26);}if(_24.addEventListener){var _2c=_25 in _2d,_2e=_2c?_2d[_25]:_25;_24.addEventListener(_2e,_26,_2c);return {remove:function(){_24.removeEventListener(_2e,_26,_2c);}};}_25="on"+_25;if(_2f&&_24.attachEvent){return _2f(_24,_25,_26);}throw new Error("Target must be an event emitter");};on.matches=function(_30,_31,_32,_33,_34){_34=_34&&(typeof _34.matches=="function")?_34:_2.query;_33=_33!==false;if(_30.nodeType!=1){_30=_30.parentNode;}while(!_34.matches(_30,_31,_32)){if(_30==_32||_33===false||!(_30=_30.parentNode)||_30.nodeType!=1){return false;}}return _30;};on.selector=function(_35,_36,_37){return function(_38,_39){var _3a=typeof _35=="function"?{matches:_35}:this,_3b=_36.bubble;function _3c(_3d){return on.matches(_3d,_35,_38,_37,_3a);};if(_3b){return on(_38,_3b(_3c),_39);}return on(_38,_36,function(_3e){var _3f=_3c(_3e.target);if(_3f){_3e.selectorTarget=_3f;return _39.call(_3f,_3e);}});};};function _40(){this.cancelable=false;this.defaultPrevented=true;};function _41(){this.bubbles=false;};var _42=[].slice,_43=on.emit=function(_44,_45,_46){var _47=_42.call(arguments,2);var _48="on"+_45;if("parentNode" in _44){var _49=_47[0]={};for(var i in _46){_49[i]=_46[i];}_49.preventDefault=_40;_49.stopPropagation=_41;_49.target=_44;_49.type=_45;_46=_49;}do{_44[_48]&&_44[_48].apply(_44,_47);}while(_46&&_46.bubbles&&(_44=_44.parentNode));return _46&&_46.cancelable&&_46;};var _2d=_3("event-focusin")?{}:{focusin:"focus",focusout:"blur"};if(!_3("event-stopimmediatepropagation")){var _4a=function(){this.immediatelyStopped=true;this.modified=true;};var _2b=function(_4b){return function(_4c){if(!_4c.immediatelyStopped){_4c.stopImmediatePropagation=_4a;return _4b.apply(this,arguments);}};};}if(_3("dom-addeventlistener")){on.emit=function(_4d,_4e,_4f){if(_4d.dispatchEvent&&document.createEvent){var _50=_4d.ownerDocument||document;var _51=_50.createEvent("HTMLEvents");_51.initEvent(_4e,!!_4f.bubbles,!!_4f.cancelable);for(var i in _4f){if(!(i in _51)){_51[i]=_4f[i];}}return _4d.dispatchEvent(_51)&&_51;}return _43.apply(on,arguments);};}else{on._fixEvent=function(evt,_52){if(!evt){var w=_52&&(_52.ownerDocument||_52.document||_52).parentWindow||window;evt=w.event;}if(!evt){return evt;}try{if(_53&&evt.type==_53.type&&evt.srcElement==_53.target){evt=_53;}}catch(e){}if(!evt.target){evt.target=evt.srcElement;evt.currentTarget=(_52||evt.srcElement);if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}if(!evt.stopPropagation){evt.stopPropagation=_54;evt.preventDefault=_55;}switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;_56(evt);break;}}return evt;};var _53,_57=function(_58){this.handle=_58;};_57.prototype.remove=function(){delete _dojoIEListeners_[this.handle];};var _59=function(_5a){return function(evt){evt=on._fixEvent(evt,this);var _5b=_5a.call(this,evt);if(evt.modified){if(!_53){setTimeout(function(){_53=null;});}_53=evt;}return _5b;};};var _2f=function(_5c,_5d,_5e){_5e=_59(_5e);if(((_5c.ownerDocument?_5c.ownerDocument.parentWindow:_5c.parentWindow||_5c.window||window)!=top||_3("jscript")<5.8)&&!_3("config-_allow_leaks")){if(typeof _dojoIEListeners_=="undefined"){_dojoIEListeners_=[];}var _5f=_5c[_5d];if(!_5f||!_5f.listeners){var _60=_5f;_5f=Function("event","var callee = arguments.callee; for(var i = 0; i