MCPcopy
hub / github.com/getflourish/Sketch-Style-Inventory / $

Function $

sketchSelect.js:21–36  ·  view source on GitHub ↗
(selector, context)

Source from the content-addressed store, hash-verified

19];
20
21function $(selector, context) {
22 var elements = null;
23
24 // if no context is defined, look for the elements on the current page
25 if (context === undefined) {
26 context = doc.currentPage();
27 }
28
29 if (classNames.indexOf(selector) != -1) {
30 elements = $.fn.getElementsByClass(selector, context);
31 } else {
32 elements = $.fn.getElementsByName(selector, context);
33 }
34
35 return elements;
36}
37
38$.fn = {
39

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected