When jQuery's $(".foo li") returns an object as a result, what exact is the type of object called? -
let's if initialize selected result:
init : function() { this.searchbutton = $("#searchbutton"); this.listitems = $("#product-list li"); }
i wonder official name object returned $("#product-list li")
? called jquery selector object or selector, vague. selector can string "#product-list li"
, , jquery selector object may better, except results , length indicates number of matches inside object, not selector object because results inside. there formal name object? example, if commit above code using svn or git, should comment "initializing jquery selector objects"?
the colloquial name 'jquery object', although far javascript concerned, if typeof
against it's plain old object
.
Comments
Post a Comment