jsquery_node 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsquery.ts +3 -1
- package/package.json +1 -1
package/jsquery.ts
CHANGED
|
@@ -285,9 +285,10 @@ export namespace JSQuery {
|
|
|
285
285
|
export type Plugin = Extension;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
+
|
|
288
289
|
function J(q: any): JSQuery.Element | null {
|
|
289
290
|
return JSQuery.Element.from(document.querySelector(q)) as any;
|
|
290
|
-
}
|
|
291
|
+
};
|
|
291
292
|
|
|
292
293
|
J.from = ((elt:any) => {
|
|
293
294
|
return JSQuery.Element.from(elt);
|
|
@@ -337,4 +338,5 @@ J.loadExtension = (extend: new()=>JSQuery.Extension) => {
|
|
|
337
338
|
}
|
|
338
339
|
|
|
339
340
|
J.loadPlugin = J.loadExtension;
|
|
341
|
+
export const $ = J;
|
|
340
342
|
|