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
| var Templatizer = new Class({ | |
| Implements: [Options, Events], | |
| options: { | |
| templates: { | |
| /* | |
| name: instanceOfSubtleTemplate | |
| */ | |
| }, | |
| data: {} | |
| }, |
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
| Hash.implement({ | |
| substitute: function(template, regexp){ | |
| return template.replace(regexp || (/\\?\{([^{}]+)\}/g), function(match, name){ | |
| if (match.charAt(0) == '\\') return match.slice(1); | |
| if (this.get(name)) return this.get(name); | |
| if (name.contains(".")) { | |
| var found = this.getFromPath(name); | |
| return found ? found : ""; | |
| } | |
| }.bind(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
| //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', |
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
| 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 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
| 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 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
| 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 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
| 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 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
| /* | |
| 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 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
| /* | |
| * 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 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
| Chain = new Class({ | |
| $chains: {}, | |
| getChain: function(key) { | |
| this.$chains[key] = this.$chains[key] || { | |
| $chain: [], | |