Skip to content

Commit 0f1668f

Browse files
committed
- reestablish new file lost
- remove duplicated code while merging
1 parent 12c88ef commit 0f1668f

File tree

2 files changed

+51
-20
lines changed

2 files changed

+51
-20
lines changed

src/dash/parser/objectiron.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,6 @@ function ObjectIron(mappers) {
6262
}
6363
}
6464
}
65-
66-
// apply mapping
67-
if (allowMapping) {
68-
if (child[parentName]) {
69-
// property already exists
70-
// check to see if we should merge
71-
if (mergeFlag) {
72-
if (parentIsArray) {
73-
child[propertyParentElement].push(parentEl);
74-
}
75-
}
76-
} else {
77-
// just add the property
78-
if (parentIsArray) {
79-
child[propertyParentElement] = [parentEl];
80-
} else {
81-
child[propertyParentElement] = parentEl;
82-
}
83-
}
84-
}
8565
}
8666

8767
function mapProperties(properties, exceptions, parent, child) {
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* The copyright in this software is being made available under the BSD License,
3+
* included below. This software may be subject to other third party and contributor
4+
* rights, including patent rights, and no such rights are granted under this license.
5+
*
6+
* Copyright (c) 2013, Dash Industry Forum.
7+
* All rights reserved.
8+
*
9+
* Redistribution and use in source and binary forms, with or without modification,
10+
* are permitted provided that the following conditions are met:
11+
* * Redistributions of source code must retain the above copyright notice, this
12+
* list of conditions and the following disclaimer.
13+
* * Redistributions in binary form must reproduce the above copyright notice,
14+
* this list of conditions and the following disclaimer in the documentation and/or
15+
* other materials provided with the distribution.
16+
* * Neither the name of Dash Industry Forum nor the names of its
17+
* contributors may be used to endorse or promote products derived from this software
18+
* without specific prior written permission.
19+
*
20+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY
21+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23+
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
24+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25+
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29+
* POSSIBILITY OF SUCH DAMAGE.
30+
*/
31+
/**
32+
* @classdesc Defines a Certificate request
33+
* @ignore
34+
*/
35+
class CertificateRequest {
36+
/**
37+
* Defines a certificate request
38+
*
39+
* @class
40+
*/
41+
constructor(url, headers, withCredentials) {
42+
this.url = url;
43+
this.method = 'GET';
44+
this.responseType = 'arraybuffer';
45+
this.headers = headers;
46+
this.body = null;
47+
this.withCredentials = withCredentials;
48+
}
49+
}
50+
51+
export default CertificateRequest;

0 commit comments

Comments
 (0)