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
// Examples can be found here: http://boedesign.com/misc/outer_setters.html | |
// Discussed here: http://forum.jquery.com/topic/outerheight-int-sets-the-height-taking-into-account-padding-and-border | |
(function($){ | |
function _outerSetter(direction, args){ | |
var $el = $(this), | |
$sec_el = $(args[0]), | |
dir = (direction == 'Height') ? ['Top', 'Bottom'] : ['Left', 'Right'], |
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($){ | |
$.each(["live", "die"], function( i, name ) { | |
var method = $.fn[ name ]; | |
$.fn[ name ] = function( types, data, fn, origSelector ) { | |
if ( typeof types === "object" && !types.preventDefault ) { | |
for ( var key in types ) { | |
method.call( this, key, data, types[key], origSelector ); | |
} |
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
/********************************************************************************** | |
* | |
* @author Jordan Boesch | |
* @version 1.2 | |
* @link http://boedesign.com/blog/2010/02/13/hijacking-javascriptjquery-methods/ | |
* @date Feb 20, 2010 | |
* | |
* Hijack is a little snippet of code that allows you to hijack arguments passed to | |
* functions/methods. Not only can you alter arguments, but you call the old method | |
* from within the hijacked function (2nd param) and 'return false' if you want to call the |
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
/* This is a template command. */ | |
CmdUtils.CreateCommand({ | |
names: ["rss"], | |
icon: "http://www.feedicons.com/favicon.ico", | |
description: "A nice and quick way to browse RSS feeds.", | |
help: "Type 'rss' then the url of the site. example: rss www.boedesign.com. If there are multiple feeds you know of try doing rss www.boedesign.com(2) to get another feed.", | |
author: {name: "Jordan Boesch", email: "[email protected]"}, | |
license: "GPL", | |
homepage: "http://boedesign.com.com/", | |
arguments: [{role: 'object', nountype: noun_arb_text}], |
NewerOlder