This file contains hidden or 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
(function(){ | |
var global = this, | |
list = ['', 'webkit', 'Moz', 'O', 'ms'], | |
prefixList = {}, | |
setStyle = Element.prototype.setStyle, | |
getStyle = Element.prototype.getStyle; | |
var getPrefix = function(property){ | |
property = property.camelCase(); |
This file contains hidden or 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
(function(){ | |
// thanks @astolwijk | |
var key = (function(){ | |
var list = ['', 'webkit', 'Moz', 'O', 'ms'], | |
element = document.html; | |
for (var i = 0; i < list.length; i++){ | |
var prefix = list[i]; | |
if (element.style[prefix ? prefix + 'TransitionProperty' : 'transitionProperty'] != null) |
This file contains hidden or 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
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
br = branch | |
cp = cherry-pick | |
sub = submodule update --init --recursive | |
rb = pull --rebase |
This file contains hidden or 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
(function(){ | |
this.Queue = new Class({ | |
Extends: Chain, | |
Implements: Class.Binds, | |
call: function(){ | |
if (this.busy || !this.$chain.length) return this; |
This file contains hidden or 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
// Element Listener Mixin | |
(function(){ | |
var property = '$listener'; | |
var setup = function(element){ | |
var listener = new Events, removeEvent = listener.removeEvent; | |
listener.removeEvent = function(key, value){ | |
removeEvent.call(this, key, value); | |
element.removeEvent(key, value); | |
}; |
This file contains hidden or 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
// Element Listener Mixin | |
(function(){ | |
var property = '$listener'; | |
var setup = function(element){ | |
var listener = new Events, removeEvent = listener.removeEvent; | |
listener.removeEvent = function(key, value){ | |
removeEvent.call(this, key, value); | |
element.removeEvent(key, value); | |
}; |
This file contains hidden or 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
// Element Listener Mixin | |
(function(){ | |
var setup = function(){ | |
var element = this.toElement(), | |
listener = new Events, | |
removeEvent = listener.removeEvent; | |
listener.removeEvent = function(key, value){ | |
element.removeEvent(key, value); | |
removeEvent.call(this, key, value); |
This file contains hidden or 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
(function(){ | |
this.Initiatable = new Class({ | |
isInitiatable: true, | |
initiator: null, | |
setInitiator: function(initiator){ | |
this.initiator = initiator || null; | |
This file contains hidden or 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
// Upgrade from MooTools Core 1.2 to MooTools Core 1.3 | |
// | |
// Brings compatibility for Element.set and Element.get with multipe arguments. | |
// Use at your own risk; if cou can - fix your code and do not use this script. | |
// -- @cpojer | |
(function(){ | |
Element.implement({ | |
This file contains hidden or 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
(function(){ | |
if (!Browser.Features.Touch) return; | |
var start, end, moved; | |
var events = { | |
touchstart: function(event){ | |
moved = false; |