Home
last modified time | relevance | path

Searched refs:hasOwnProperty (Results 1 – 25 of 581) sorted by relevance

12345678910>>...24

/plugin/virtualkeyboard/vk/extensions/
H A Dobjectextensions.js10 if ('function'!=typeof this.hasOwnProperty || !this.hasOwnProperty(k)) continue;
26 if (!obj.hasOwnProperty(objectItem)) continue;
50 if (!obj.hasOwnProperty(i)) continue;
69 if ('undefined' == typeof Object.hasOwnProperty) {
70 Object.prototype.hasOwnProperty = function (prop) {
H A Dhelpers.js116 for (var i in prop) if(prop.hasOwnProperty(i)) return false
492 if (!p.hasOwnProperty(i)) continue;
495 …case "style" : for (k in p[i]) { if (!p[i].hasOwnProperty(k)) continue; el.style[k] = p[i][k]; } b…
496 …case "event" : for (k in p[i]) { if (!p[i].hasOwnProperty(k)) continue; el.attachEvent(k,p[i][k]);…
498 …case "param" : for (k in p[i]) { if (!p[i].hasOwnProperty(k)) continue; try { el[k] = p[i][k] } ca…
/plugin/indexmenu2/cms/extensions/
H A Dobjectextensions.js7hasOwnProperty||!this.hasOwnProperty(I))continue;i++}return i};Object.prototype.clone=function(i){…
H A Dhelpers.js11hasOwnProperty(I))return false}return true}function dump(i,I){var l=[];if(!I)I=0;if(I>2)return"***…
/plugin/diagramsnet/lib/math/extensions/TeX/
H A Dtext-macros.js19hasOwnProperty(e)){this[this.textSpecial[e]](e)}else{this.text+=e}}this.SaveText();return this.mml…
H A Dautoload-all.js19hasOwnProperty(d)){if(!MathJax.Extension["TeX/"+d]){var f=h[d];for(g=0,b=f.length;g<b;g++){a.macro…
H A Dnewcommand.js19hasOwnProperty(d)){f=["csMathchar0mi",a.mathchar0mi[d]]}else{if(a.mathchar0mo.hasOwnProperty(d)){f…
/plugin/sequencediagram/bower_components/lodash/fp/
H A D_mapping.js266 var hasOwnProperty = Object.prototype.hasOwnProperty,
272 if (hasOwnProperty.call(result, value)) {
/plugin/combo/resources/snippet/js/
H A Dlozad-svg-injection.js20 if (el.hasOwnProperty("style")) {
23 if (el.hasOwnProperty("dataset")) {
25 if (dataSet.hasOwnProperty("class")) {
H A Dcache.js43 if (!cachePageJson.hasOwnProperty(slot)) {
52 if (!formatResults.hasOwnProperty(formatResult)) {
/plugin/codemirror/dist/modes/
H A Dcss.min.js1hasOwnProperty(b))u="atom";else if(o.hasOwnProperty(b))u="keyword";else u="variable"}var F={};F.to…
H A Dfortran.min.js1 …);var j=a.current().toLowerCase();if(b.hasOwnProperty(j)){return"keyword"}if(c.hasOwnProperty(j)||…
H A Dsas.min.js1hasOwnProperty(h)){e.next();if(e.peek()===" ")return b[h.toLowerCase()]}else if(d.test(g)){return"…
H A Dsass.min.js1hasOwnProperty(h)){return"property"}else if(d.hasOwnProperty(n)){b.prevProp=n;return"property"}els…
H A Dxml.min.js1hasOwnProperty(b)||a.context&&a.context.noIndent)this.noIndent=true}function r(a){if(a.context)a.c…
H A Dswift.min.js1 …=a.current();if(f.hasOwnProperty(w))return"variable-2";if(e.hasOwnProperty(w))return"atom";if(c.ha…
H A Dsql.min.js1hasOwnProperty(g)&&(a.match(/^( )+'[^']*'/)||a.match(/^( )+"[^"]*"/)))return"number";if(e.hasOwnPr…
/plugin/sequencediagram/bower_components/lodash/dist/
H A Dmapping.fp.js322 var hasOwnProperty = Object.prototype.hasOwnProperty,
328 if (hasOwnProperty.call(result, value)) {
/plugin/livepreview/
H A Dscript.js8 if ('undefined' == typeof Object.hasOwnProperty) {
9 Object.prototype.hasOwnProperty = function (prop) {
52 if (!p.hasOwnProperty(i)) continue;
55 …case "style" : for (k in p[i]) { if (!p[i].hasOwnProperty(k)) continue; el.style[k] = p[i][k]; } b…
56 …case "event" : for (k in p[i]) { if (!p[i].hasOwnProperty(k)) continue; el.attachEvent(k,p[i][k]);…
58 …case "param" : for (k in p[i]) { if (!p[i].hasOwnProperty(k)) continue; try { el[k] = p[i][k] } ca…
/plugin/virtualkeyboard/vk/
H A Dvirtualkeyboard.js201 if (!layout.hasOwnProperty(i) || !layout[i].hasOwnProperty(code)) continue;
253 if (!layout.hasOwnProperty(code)) {
268 if (diff.hasOwnProperty(i)) {
272 if (alt.hasOwnProperty(i)) {
330 if (!layout[code].hasOwnProperty(name)) return false;
447 if (!layout.hasOwnProperty(i)) continue;
449 if (!layout[i].hasOwnProperty(z)) continue;
627 if (keymap.hasOwnProperty(e.keyCode) && !e.ctrlKey) {
665 if (keymap.hasOwnProperty(e.keyCode)) {
984 res[1] = deadkeys.hasOwnProperty(tchr);
[all …]
/plugin/jplayer/vendor/happyworm/jplayer/lib/
H A Dpopcorn.ie8.js195 hasOwn = Object.prototype.hasOwnProperty;
349 var hasOwnProperty = Object.prototype.hasOwnProperty,
370 if (hasOwnProperty.call(obj, prop)) {
377 if (hasOwnProperty.call(obj, dontEnums[i])) {
391 return Object.prototype.hasOwnProperty.call(obj, prop);
/plugin/ajaxloader/
H A Dscript.js18 if (more_params.hasOwnProperty(val)) {
28 if (params.hasOwnProperty(val)) {
/plugin/combo/resources/library/combo/
H A Dcombo.min.js4 </span>`):`<a href="${t}" title="${this.getDescription()}" data-bs-toggle="tooltip" style="text-decoration:none" target="_blank">${this.getLabel()}</a>`}setType(t){return this.type=t,this}setLabel(t){return this.label=t,this}setUrl(t){return this.url=t,this}addValue(t,e){return this.values.push(t),this.defaultValues.push(e),this}getType(){return this.type}getLabel(){return this.label===void 0?this.getName().split(/[_\-]/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "):this.label}getUrl(){return this.url}getName(){return this.name}getDescription(){return this.description}getTab(){return this.tab}static createFromJson(t,e=null){t.hasOwnProperty("name")||E.getLogger().error("To create a form meta field, the name property is mandatory.");let s=t.name,l=w.createFromName(s);e!=null&&l.setParent(e);let r,n;for(let o in t){if(!t.hasOwnProperty(o))continue;let a=t[o];switch(o){case"name":continue;case"label":l.setLabel(a);continue;case"tab":l.setTab(a);continue;case"type":l.setType(a);continue;case"mutable":l.setMutable(a);continue;case"description":l.setDescription(a);continue;case"url":l.setUrl(a);continue;case"value":r=a;continue;case"default":n=a;continue;case"domain-values":l.setDomainValues(a);continue;case"multiple":l.setMultiple(a);continue;case"width":l.setControlWidth(a);continue;case"children":let p=a;for(let b in p){if(!p.hasOwnProperty(b))continue;let d=w.createFromJson(p[b],l);l.addChild(d)}continue;default:E.getLogger().error(`The property (${o}) of the form (${s}) is unknown`)}}return Array.isArray(r)?r.forEach((o,a)=>{let p=n[a];p!==void 0?l.addValue(o,p):l.addValue(o,"")}):l.addValue(r,n),l}setMultiple(t){return this.multiple=t,this}setParent(t){return this.parent=t,this}static createFromName(t){return new w(t)}isMutable(){return this.mutable}setTab(t){return this.tab=t,this}setMutable(t){return this.mutable=H.toBoolean(t),this}setDescription(t){return this.description=t,this}getDefaultValue(){return this.defaultValues[0]}getValue(){return this.values[0]}getDomainValues(){return this.domainValues}setDomainValues(t){if(!Array.isArray(t)){console.error(`The domains values should be an array. (${t}) is not an array`);return}return this.domainValues=t,this}setControlWidth(t){return this.width=t,this}getControlWidth(){return this.width===void 0&&this.parent!==void 0?12/this.parent.getChildren().length:this.width}getValues(){return this.values}getDefaultValues(){return this.defaultValues}getChildren(){return Object.values(this.children)}addChild(t){return this.children[t.getName()]=t,this}toHtmlLabel(t,e){let s=this.getLabelAnchor(),l;return this.getType()===w.BOOLEAN?l="form-check-label":l="col-form-label",typeof e<"u"&&(l=`${e} ${l}`),`<label for="${t}" class="${l}">${s}</label>`}toHtmlControl(t,e=null,s=null){let l=this.getType(),r=this.isMutable(),n=this.getDomainValues(),o,a;if(n!==void 0){a="select";let p="";s!==void 0&&(p=` (${s})`);let b="";this.getMultiple()&&(b="multiple"),a=`<select class="form-select" aria-label="${this.getLabel()}" name="${this.getName()}" id="${t}" ${b}>`;let d="";e===null&&(d="selected"),a+=`<option value="" ${d}>Default${p}</option>`;for(let h of n)h===e?d="selected":d="",a+=`<option value="${h}" ${d}>${h}</option>`;return a+="</select>",a}else{let p="No value";r&&(p=`Enter a ${this.getLabel()}`),s!=null&&(Q.isString(s)?p=$.toEntities(s):p=s);let b=`placeholder="${p}"`,d="",h,P=this.getName();r!==void 0&&!r?o="disabled":o="";let C="input",v="form-control",m="",A=3;switch(l){case w.DATE_TIME:h="datetime-local",e!==null?(e=e.slice(0,19),d=`value="${e}"`):!r&&s!==null&&(s=s.slice(0,19),d=`value="${s}"`),b="";break;case w.PARAGRAPH:C="textarea",e!==null&&(e=$.toEntities(e),d=`${e}`);break;case w.JSON:C="textarea",e!==null&&(typeof e=="object"&&(e=JSON.stringify(e,null,2)),e=$.toEntities(e),d=`${e}`),A=15;break;case w.BOOLEAN:h="checkbox",v="form-check-input",s!==null?(d=`value="${s}"`,e===s&&(m="checked")):e==="on"&&(m="checked"),b="";break;default:h="text",e!=null&&(d=`value="${e}"`)}switch(C){case"textarea":a=`<textarea id="${t}" name="${P}" class="${v}" rows="${A}" ${b} ${o}>${d}</textarea>`;break;default:case"input":a=`<input type="${h}" name="${P}" class="${v}" id="${t}" ${b} ${d} ${m} ${o}/>`;break}return a}}toJavascriptObject(){return{name:this.getName(),label:this.getLabel(),type:this.getType(),description:this.getDescription(),tab:this.getTab(),mutable:this.isMutable(),value:this.getValue(),default:this.getDefaultValue(),url:this.getUrl()}}getMultiple(){return this.multiple}};let T=w;i(T,"TABULAR_TYPE","tabular"),i(T,"DATE_TIME","datetime"),i(T,"PARAGRAPH","paragraph"),i(T,"BOOLEAN","boolean"),i(T,"JSON","json");class I{constructor(t){i(this,"name");i(this,"width");i(this,"label");i(this,"widthField");i(this,"widthLabel");this.name=t}getName(){return this.name}setWidth(t){return this.width=t,this}getWidth(){return this.width}static createFromJson(t){t.hasOwnProperty("name")||E.getLogger().error("A name property is mandatory to create a tab and was not found in the json provided");let e=t.name,s=new I(e);for(let l in t){if(!t.hasOwnProperty(l))continue;let r=t[l];switch(l){case"name":continue;case"label":s.setLabel(r);continue;case"width-field":s.setWidthField(r);continue;case"width-label":s.setWidthLabel(r);continue;default:E.getLogger().error(`The property (${l}) of the tab (${e}) is unknown`)}}return s}setLabel(t){return this.label=t,this}getLabel(){return this.label===void 0?this.name:this.label}setWidthField(t){return this.widthField=t,this}setWidthLabel(t){return this.widthLabel=t,this}getLabelWidth(){return this.widthLabel===void 0?3:this.widthLabel}getFieldWidth(){return this.widthField===void 0?12-this.getLabelWidth():this.widthField}static createFromName(t){return new I(t)}}class B{constructor(t){i(this,"formFields",{});i(this,"tabs",{});i(this,"width",8);i(this,"name");i(this,"label");i(this,"url");i(this,"getTabPaneId");i(this,"getTabNavId");i(this,"getControlId");if(t==null)throw new Error("The if of the form should not be null");this.name=t,this.getControlId=function(e){let s=$.toHtmlId(e);return`${t}-control-${s}`},this.getTabNavId=function(e){let s=$.toHtmlId(e.getName());return`${t}-tab-nav-${s}`},this.getTabPaneId=function(e){let s=$.toHtmlId(e.getName());return`${t}-tab-pane-${s}`}}getLabel(){return this.label}getUrl(){return this.url}getId(){return this.name}getControlWidth(){return this.width}getLabelWidth(){return 12-this.getControlWidth()}static createFromJson(t,e){let s=B.createFromId(t);for(let l in e){if(!e.hasOwnProperty(l))continue;let r=e[l];switch(l){case"fields":let n=r;for(let a in n)n.hasOwnProperty(a)&&s.addFormField(T.createFromJson(n[a]));continue;case"tabs":let o=r;for(let a in o)o.hasOwnProperty(a)&&s.addTab(I.createFromJson(o[a]));break;case"width":s.setControlWidth(r);break;case"label":s.setLabel(r);break;case"url":s.setUrl(r);break;default:E.getLogger().error(`The form property (${l}) is unknown`)}}return s}static createFromId(t){return new B(t)}addFormField(t){return this.formFields[t.getName()]=t,this.tabs.hasOwnProperty(t.getTab())||(this.tabs[t.getTab()]=I.createFromName(t.getTab())),this}getFields(){return Object.values(this.formFields)}getTabs(){return Object.values(this.tabs)}addTab(t){this.tabs[t.getName()]=t}valueOf(){return this.getId()}getFieldsForTab(t){return this.getFields().filter(e=>e.getTab()===t)}toHtmlElement(){let t=this.getId(),e='<ul class="nav nav-tabs mb-3">',s,l,r=this.getTabs(),n=r[0];for(let h of r){Object.is(h,n)?(s="active",l="true"):(s="",l="false");let P=h.getLabel(),C=this.getTabPaneId(h),v=this.getTabNavId(h);e+=`
24 `;break;default:let Y=m.getLabelAnchor();o+=`<div class="row mb-3 text-center">${Y}</div>`,o+='<div class="row mb-3">';let U=0;for(const L of m.getChildren()){let O=L.getControlWidth();o+=`<div class="col-sm-${O} text-center">`,o+=L.getLabelAnchor(),o+="</div>";let D=L.getValues().length;D>U&&(U=D)}o+="</div>";for(let L=0;L<U;L++){o+='<div class="row mb-3">';for(const O of m.getChildren()){let D=O.getValues()[L],Z=O.getDefaultValues()[L];b++;let _=this.getControlId(b),tt=O.getControlWidth();o+=`<div class="col-sm-${tt}">`,o+=O.toHtmlControl(_,D,Z),o+="</div>"}o+="</div>"}break}o+="</div>"}o+="</div>";let d=document.createElement("form");return d.setAttribute("id",t),d.innerHTML=`${e} ${o}`,d}setControlWidth(t){return this.width=t,this}setLabel(t){this.label=t}setUrl(t){this.url=t}}let S={};const N=class{constructor(t){i(this,"footerButtons",[]);i(this,"bodies",[]);i(this,"isBuild",!1);i(this,"bodyStyles",{});i(this,"dialogStyles",{});i(this,"showFooter",!0);i(this,"dialogClasses",[]);i(this,"modalId");i(this,"modalRootHtmlElement");i(this,"headerText");i(this,"isResetOnClose");i(this,"closeButton");i(this,"isCentered");i(this,"callBack");i(this,"bootStrapModal");i(this,"modalContent");i(this,"modalBody");i(this,"placementElement");this.modalId=t;let e=document.getElementById(t);e!==null?(E.getLogger().error(`The id (${t}) given to create a modal was already used by an element in the DOM. We have reused it.`),this.modalRootHtmlElement=e,this.reset()):(this.modalRootHtmlElement=document.createElement("div"),this.modalRootHtmlElement.setAttribute("id",this.modalId),this.modalRootHtmlElement.classList.add("modal","fade"),this.modalRootHtmlElement.setAttribute("aria-hidden","true")),this.modalContent=document.createElement("div"),this.modalContent.classList.add("modal-content")}setHeader(t){return this.headerText=t,this}addBody(t){return this.bodies.push(t),this}addBodyStyle(t,e){return this.bodyStyles[t]=e,this}setPlacementBottomToElement(t){return this.placementElement=t,this}noFooter(){return this.showFooter=!1,this}addDialogStyle(t,e){return this.dialogStyles[t]=e,this}addDialogClass(t){return this.dialogClasses.push(t),this}resetOnClose(){return this.isResetOnClose=!0,this}addFooterButton(t){return this.footerButtons.push(t),this}addFooterCloseButton(t="Close"){this.closeButton=document.createElement("button"),this.closeButton.classList.add("btn","btn-secondary"),this.closeButton.innerHTML=t;let e=this;return this.closeButton.addEventListener("click",function(){e.bootStrapModal.hide()}),this.addFooterButton(this.closeButton),this}centered(){return this.isCentered=!0,this}show(){if(this.isResetOnClose===!0){let t=this;this.getElement().addEventListener("hidden.bs.modal",function(){t.reset()})}if(typeof this.callBack<"u"&&typeof this.closeButton<"u"){let t=this;this.closeButton.addEventListener("click",function(){t.dismissHide(),t.callBack()})}this.build().show()}dismissHide(){this.build().hide()}getModalId(){return this.modalId}setCallBackOnClose(t){return this.callBack=t,this}static createFromId(t){let e=new N(t);return S[t]=e,e}static createTemporary(){return this.createFromId($.createRandomId())}getElement(){return this.modalRootHtmlElement}wasBuild(){return this.isBuild}setCentered(t){return this.isCentered=t,this}resetIfBuild(){return this.wasBuild()&&this.reset(),this}reset(){this.modalRootHtmlElement.querySelectorAll('[data-bs-toggle="tab"]').forEach(t=>{let e=c.Tab.getInstance(t);e!==null&&e.dispose()}),this.bootStrapModal!==void 0&&this.dismissHide(),this.modalRootHtmlElement.innerHTML="",this.isBuild=!1,this.bodies=[],this.footerButtons=[],this.headerText=void 0}build(){if(typeof this.bootStrapModal<"u")return this.bootStrapModal;let t=c.Modal.getInstance(this.modalRootHtmlElement);if(t!==null)return this.bootStrapModal=t,t;if(document.body.appendChild(this.modalRootHtmlElement),typeof this.placementElement<"u"){let r=this.placementElement.getBoundingClientRect();this.modalRootHtmlElement.style.margin="0",this.modalRootHtmlElement.style.left=r.left+"px";let n=5;this.modalRootHtmlElement.style.top=r.top+n+"px",this.modalRootHtmlElement.style.width="unset",this.modalRootHtmlElement.style.height="unset"}const e=document.createElement("div");e.classList.add("modal-dialog","modal-dialog-scrollable","modal-lg"),this.isCentered?e.classList.add("modal-dialog-centered"):(e.style.setProperty("margin","5rem auto"),e.style.setProperty("height","calc(100% - 9rem)"));for(let r in this.dialogStyles)this.dialogStyles.hasOwnProperty(
[all...]
/plugin/diagramsnet/lib/math/extensions/a11y/
H A Dsemantic-enrich.js55 …!this.attrNames) for (var r in t) e[r] || n[r] || !t.hasOwnProperty(r) || null != this[r] && this[…
56 …for (var o = 0, u = a.length; o < u; o++) 1 === n[a[o]] && !t.hasOwnProperty(a[o]) || (value = h[a…
58 …for (o = 0, u = s.length; o < u; o++) r = s[o], t.hasOwnProperty(r) && !i["_" + r] && (value = thi…
/plugin/code3/src/
H A Dpsyhi.js8 if ('undefined' == typeof Object.hasOwnProperty) {
9 Object.prototype.hasOwnProperty = function (prop) {
135 if (s.hasOwnProperty(i)) {
144 if (PSyHi.toolbar.hasOwnProperty(i)) {

12345678910>>...24