Skip to content

Commit 1df9443

Browse files
committed
Add create() and getLocalFunctions() to function registry so it can be used for plugins
1 parent a1c0885 commit 1df9443

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/less/functions/function-registry.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ function makeRegistry( base ) {
2020
get: function(name) {
2121
return this._data[name] || ( base && base.get( name ));
2222
},
23-
inherit : function() {
23+
getLocalFunctions: function() {
24+
return this._data;
25+
},
26+
inherit: function() {
2427
return makeRegistry( this );
28+
},
29+
create: function(base) {
30+
return makeRegistry(base);
2531
}
2632
};
2733
}

0 commit comments

Comments
 (0)