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
//bindAll from underscore that allows 1 argument to bind all the functions from the prototype, | |
//or if there are more arguments they will be the only binded | |
_.originalBindAll = _.bindAll; | |
_.bindAll = function (that) { | |
var funcs = Array.prototype.slice.call(arguments, 1), | |
validKeys = [], fn; | |
if (funcs.length == 0) { | |
for (var i in that) { | |
fn = that[i]; | |
if (fn && typeof fn == "function" && (!fn.prototype || _.keys(fn.prototype).length == 0)) |
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
// Example: this.$stage.doubleTab.on(this.$stage, this.onContainerClicked, 200, "touchstart", this.options.delegatedTagSel); | |
// this.$stage.doubleTab.off(this.$stage, "touchstart"); | |
$.fn.doubleTab = (function() { | |
var timer, data, eventType = "touchend"; | |
var timeout = 600; | |
var $itemClicked = null; | |
var onDoubleClickSTART = function(e) { | |
data = e.data; | |
data.$container.off(data.eventType, onDoubleClickSTART); |
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
package { | |
// imports ... | |
public class AppConfig implements IConfig | |
{ | |
[Inject] | |
public var context:IContext; | |
[Inject] | |
public var commandMap:ISignalCommandMap; |
NewerOlder