Skip to content

Commit 93acf1c

Browse files
committed
Use more informative output when printing jQuery objects
1 parent 2182bb7 commit 93acf1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ltk/ltk.js

+6
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@
159159
return window.getWidget($(this))
160160
};
161161

162+
$.fn.toString = function() {
163+
const tag = this.prop("tagName");
164+
return `jQuery[${tag}, "${this.prop('outerHTML')}"]`;
165+
};
166+
167+
162168
// change the following to your own development root location
163169
window.development_location = "C:/Users/laffr/dev/ltk";
164170

0 commit comments

Comments
 (0)