This repository was archived by the owner on Jun 23, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-19
lines changed Expand file tree Collapse file tree 3 files changed +8
-19
lines changed Original file line number Diff line number Diff line change
1
+ # 0.2.1 - 2015-11-24
2
+
3
+ - Fix a bug that was caused by overwriting the base element. This is now accomplished in another way.
4
+
1
5
# 0.2.0 - 2015-11-24
2
6
3
7
- Add support for the ` sourceMap ` element attribute.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " minim-parse-result" ,
3
- "version" : " 0.2.0 " ,
3
+ "version" : " 0.2.1 " ,
4
4
"description" : " Minim Parse Result Namespace" ,
5
5
"main" : " ./lib/parse-result.js" ,
6
6
"repository" : {
23
23
"devDependencies" : {
24
24
"chai" : " ^3.2.0" ,
25
25
"coveralls" : " ^2.11.2" ,
26
- "minim" : " ^0.12.1 " ,
26
+ "minim" : " ^0.12.2 " ,
27
27
"peasant" : " ^0.5.2"
28
28
},
29
29
"author" :
" Apiary.io <[email protected] >" ,
Original file line number Diff line number Diff line change @@ -14,25 +14,10 @@ export function namespace(options) {
14
14
const ArrayElement = minim . getElementClass ( 'array' ) ;
15
15
const StringElement = minim . getElementClass ( 'string' ) ;
16
16
17
- // First, modify the base and all currently registered elements to include
17
+ // First, modify the default list of special attributes to include
18
18
// the new `sourceMap` attribute, which is an unrefracted array of
19
19
// refracted source map elements.
20
- minim . BaseElement = class SourceMappedBase extends minim . BaseElement {
21
- constructor ( ) {
22
- super ( ...arguments ) ;
23
- this . _attributeElementArrayKeys . push ( 'sourceMap' ) ;
24
- }
25
- } ;
26
-
27
- Object . keys ( minim . elementMap ) . forEach ( ( key ) => {
28
- const ElementClass = minim . elementMap [ key ] ;
29
- minim . elementMap [ key ] = class SourceMapped extends ElementClass {
30
- constructor ( ) {
31
- super ( ...arguments ) ;
32
- this . _attributeElementArrayKeys . push ( 'sourceMap' ) ;
33
- }
34
- } ;
35
- } ) ;
20
+ minim . _attributeElementArrayKeys . push ( 'sourceMap' ) ;
36
21
37
22
class ParseResult extends ArrayElement {
38
23
constructor ( ) {
You can’t perform that action at this time.
0 commit comments