Skip to content

Commit 26b6c81

Browse files
save file
1 parent 83a79ba commit 26b6c81

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

code-dev/26-02-10/jquery-as-a-one-liner/jquery-as-a-one-liner.html

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,7 @@ <h3>test3</h3>
123123
proxy.node=node,
124124
proxy
125125
)};
126-
$._this=test3;
127-
128-
/*
129-
let clone=$('h3').clone
130-
$().append(clone);
131126

132-
let fn = e=>console.log('hello');
133-
$('h3').on.click = fn;
134-
$('h3').rem(fn);
135-
*/
136-
137-
138-
139127
function _get(target,prop){
140128

141129
var datatype = v=>Object.prototype.toString.call(v).slice(8,-1).toLowerCase();
@@ -216,8 +204,19 @@ <h3>test3</h3>
216204
$.create = new Proxy({},{get:_get});
217205

218206

207+
208+
209+
$._this=test3;
210+
211+
let clone=$('h3').clone
212+
$().append(clone);
213+
214+
let fn = e=>console.log('hello');
215+
$('h3').on.click = fn;
216+
$('h3').rem(fn);
217+
219218
debugger;
220-
// cant use the proxy as node, fundamental limitation of this method
219+
// fundamental limitation of this method, cant use the proxy as node
221220
// $().node
222221
let div=$.create.div({
223222
par : $('#test3').node,

0 commit comments

Comments
 (0)