MCPcopy Create free account
hub / github.com/textAngular/textAngular / validElementString

Function validElementString

src/textAngularSetup.js:3–9  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

1
2// tests against the current jqLite/jquery implementation if this can be an element
3function validElementString(string){
4 try{
5 return angular.element(string).length !== 0;
6 }catch(any){
7 return false;
8 }
9}
10// setup the global contstant functions for setting up the toolbar
11
12// all tool definitions

Callers 1

registerTextAngularToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…