Welcome aboard! We are happy you are here and wish you good net-raft!
<script type="text/javascript"> 
var MyText = _.extend({lang:'Backbone.js!'}, Backbone.Events);
MyText.on('MyFunction', function () {
document.write("This is ");
document.write(this.lang);
});
MyText.trigger('MyFunction'); 
</script> 
<script type="text/javascript"> 
var MyText= _.extend({lang:'backbone'}, Backbone.Events);
var MyFunction = function () {
document.write('Welcome to');
};
var MyFunction1 = function () {
document.write('Backbone.js!');
};
MyText.on('trig1',MyFunction);
MyText.on('trig1',MyFunction1);
MyText.trigger('trig1'); 
</script> 
result: Welcome to Backbone.js! 
The most helpful BACKBONE.JS solutions
How to get country from client ip address using backbonejs ?BACKBONE.JS
Click to see more ...
1K
84
How to bind callback to only fire once before being removed using backbone.js ?BACKBONE.JS
Click to see more ...
764
66
How to detect the type of a device using backbonejs ?BACKBONE.JS
Click to see more ...
666
59
How to detect the version of IE browser using backbonejs ?BACKBONE.JS
Click to see more ...
497
53
How to detect mobile device not tablet using backbonejs ?BACKBONE.JS
Click to see more ...
510
51
How to get clients latitude and longitude from ip address using backbonejs ?BACKBONE.JS
Click to see more ...
551
48
How can I trigger a fucntion using backbone.js ?BACKBONE.JS
Click to see more ...
355
46
How can I trigger a function in backbone.sj?BACKBONE.JS
Click to see more ...
634
44
How can I trigger multiple functions using backbone.js ?BACKBONE.JS
Click to see more ...
446
39
How set and get a value in backbone.js ?BACKBONE.JS
Click to see more ...
324
36