Skip to content

Commit 49d39eb

Browse files
committed
mv toCamelCase and jsHook to toolpanel Utils (they're only used there)
squash this
1 parent f69e50f commit 49d39eb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

shelly/plotlyjs/static/plotlyjs/src/plotly_util.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,6 @@ util.xml_entity_encode = function(str){
4444
return str.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,'&');
4545
};
4646

47-
util.toCamelCase = function(_str){
48-
return _str.toLowerCase().replace(/-(.)/g, function(match, group1){ return group1.toUpperCase(); });
49-
};
50-
51-
util.jsHook = function(_el){
52-
var jsHook = _el.className.match(/js-[^ ]+/);
53-
return (jsHook) ? jsHook[0] : null;
54-
};
55-
56-
5747
// text converter
5848
/////////////////////////////
5949

0 commit comments

Comments
 (0)