We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e9f299 commit cc2796aCopy full SHA for cc2796a
src/core.js
@@ -83,7 +83,11 @@
83
//self.length === 1 ? results[0] :
84
results;
85
},
86
- find: function(selector) {
+ find: function() {
87
+ try{ window.console.warn('find() is deprecated. Please use query().'); }
88
+ finally{ return this.query.apply(this, arguments); }
89
+ },
90
+ query: function(selector) {
91
var self = this.forEach ? this : [this];
92
for (var list=[], i=0, m=self.length; i<m; i++) {
93
var nodes = self[i].querySelectorAll(selector);
src/event.js
@@ -3,6 +3,7 @@
3
4
var _ = HTML._,
5
event = _.fn.event = function() {
6
+ try{ window.console.warn('event() is deprecated. https://github.com/nbubna/HTML/issues/1'); } catch(e){}
7
var args = _.slice.call(arguments),
8
self = this,
9
action,
0 commit comments