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
/* | |
Script: Element.Delegate.js | |
Extends the Element native object to include the delegate method for more efficient event management. | |
License: | |
http://www.clientcide.com/wiki/cnet-libraries#license | |
*/ | |
(function(){ | |
var getType = function(type) { |
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
/* | |
Script: Element.Delegate.js | |
Extends the Element native object to include the delegate method for more efficient event management. | |
Based on the work of Daniel Steigerwald. | |
"Element.Delegate": { | |
"deps":["Element.Event"], | |
"desc":"Delegates events for child elements to their parents for greater efficiency." | |
}, |
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
Chain = new Class({ | |
$chains: {}, | |
getChain: function(key) { | |
this.$chains[key] = this.$chains[key] || { | |
$chain: [], | |
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
/* | |
* AUTOGROW TEXTAREA | |
* Version 1.0 | |
* A mooTools plugin | |
* by Gary Glass (www.bookballoon.com) | |
* mailto:bookballoon -at- bookballoon.com | |
* | |
* Based on a jQuery plugin by Chrys Bader (www.chrysbader.com). | |
* | |
* Copyright (c) 2009 Gary Glass (www.bookballoon.com) |
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
/* | |
Script: Element.Measure.js | |
Extends the Element native object to include methods useful in measuring dimensions. | |
Element.measure / .expose methods by Daniel Steigerwald | |
License: MIT-style license. | |
Copyright: Copyright (c) 2008 Daniel Steigerwald, daniel.steigerwald.cz | |
License: | |
MIT-style license. |
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
Class.events = new Events(); | |
Class.Mutators.initialize = function(initialize){ | |
return function(){ | |
Class.events.fireEvent('initialize', this); | |
var inited = initialize.apply(this, arguments); | |
Class.events.fireEvent('afterInitialize', this); | |
return inited; | |
} | |
}; |
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
Class.Initializers = {}; | |
Class.Mutators.initialize = function(initialize){ | |
return function(){ | |
for (var modifier in Class.Initializers) { | |
if (!this[modifier]) continue; | |
this[modifier] = Class.Initializers[modifier].call(this, this[modifier]); | |
} | |
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
dispose: (Browser.Engine.trident && window.location.href.test(/^https/i)) ? | |
function(){ | |
if (this.parentNode) { | |
var bg = this.style.background; | |
this.style.background = ''; | |
this.parentNode.removeChild(this); | |
this.style.background = bg; | |
} | |
return this; | |
} : function(){ |
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
Number.implement({ | |
parsePermissions: function() { | |
var perms = {}; | |
$H({ | |
user_read: 0004, | |
user_write: 0002, | |
user_execute: 0001, | |
group_read: 0040, | |
group_write: 0020, | |
group_execute: 0010, |
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
//positions an input over an object to edit it inline | |
var EditInline = new Class({ | |
Implements: [Options, Class.Occlude, Events], | |
Binds: ['edit', 'mouseenter', 'mouseleave', 'esc'], | |
options: { | |
//onEnter: $empty, | |
tag: 'input', | |
hoverClass: 'edit_highlight', | |
activeClass: 'edit_activated', |
OlderNewer