Possible duplicate:Javascript syntax I haven & rsquo; t seen so far, what is he really doing?
Just saw http://github.com/tobeytailor/def.js today and I don’t understand how this works:
def ("Ninja") << Person ({ init: function(name){ this._super(); }, kick: function(){ this.speak("I kick u!"); } });
Looking through the code for def.js, I do not see anything mentioning the operator <<. How does this pseudo-operator overload?
<<
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1754808/More articles:Passing a variable to the after_initialize method - ruby | fooobar.comShould I use 301 to redirect in place? - redirectHow to create an object design in a specific place in memory? - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1754806/converting-relative-paths-to-absolute-paths-c&usg=ALkJrhiIpV_WdjNmOC5dF49D0ESTkH_RMQКак бороться с истекающим предметом (из-за TTL) в memcached на веб-сайте высокой загрузки? - cachingjQuery moves a div across the screen, differently - jqueryThe grep command works in testdir, but not in the "real" directory - linuxhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1754811/can-we-use-constants-in-place-of-property-name-in-assigning-values-to-class-properties&usg=ALkJrhjhXAo6O3sxJmiq4oPkpN9zD0fk7Amethod declared in struct in C ++ (STL) - c ++How to convert bytes to string to integers? python - pythonAll Articles