This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('<div/>').attachAndReturn(Letter, this, letter, specialLetter); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Test = { | |
name: 'test', | |
init: function(){ | |
this.proxiedHandleEvents = $.proxy(this.handleEvents, this); | |
Ti.App.addEventListener('app', this.proxiedHandleEvents); | |
}, | |
// Event cannon with callback fix. | |
fire: function(opts){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Demo usage of http://github.com/krawaller/PubSubHotTub | |
var func = function(){ console.log(Array.prototype.slice.call(arguments).join(" ")); }; | |
pb.sub('/root/leaf/meatloaf', func, 'i', 'like', 'curry'); | |
pb.pub('/root/leaf/meatloaf', 'and', 'cheese'); // => i like curry and cheese | |
pb.sub('/*/leaf/*', func); | |
pb.pub('/root/leaf/*', 'cheese'); // => cheese, i like curry cheese ^^ (curry cheese sounds rad) |
NewerOlder