I am learning backbone.js, in it's tutorial, it has the following code
var object = {}; _.extend(object, Backbone.Events); ...
I don't understand the "_" in the code, what does it means? and what is this "extend"? does it has the same meaning as jQuery.extend ?
Webster Dictionary(0.00 / 0 votes)Rate this definition: Here Here(noun) hair Here Here Here(adverb) in this place; in the place where the speaker is; -- opposed to there Here(adverb) in the present life or state Here(adverb) to or into this place; hither. Here(adverb) at this point of time, or of an argument; now
here goes. —used interjectionally to express resolution or resignation especially at the beginning of a difficult or unpleasant undertaking. neither here nor there. : having no interest or relevance : of no consequence comfort is neither here nor there to a real sailor. here.
—used interjectionally to express resolution or resignation especially at the beginning of a difficult or unpleasant undertaking. — neither here nor there. : having no interest or relevance : of no consequence. comfort is neither here nor there to a real sailor.
Mean In Text? Here’s The Answer & How To Respond (21 Examples) “…” in text shows just how mailable language is. If we read “…” in a book, it’s clear what it means, it’s just a long pause to build suspense. But in text, themeaning changes, and to make things even more confusing, even in text “…” doesn’t always have the same meaning.
From Backbone's own homepage :
Backbone's only hard dependency is Underscore.js.
_
is the object created by Underscore.js, in the same way as $
is the jQuery object
http://documentcloud.github.com/underscore/#extend as for what _.extend
does.
It copies all the Backbone.Events properties over to the object. Extend is a method from the underscore library: http://documentcloud.github.com/underscore/#extend
I'd say it's the same as the jQuery method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With