In this gist there's a plugin.js boilerplate for creating a new anvil plugin.
Also, there's a sublime snippet for the SB Text users out there.
(function( $, prototype ) { | |
$.extend( prototype.options, { | |
spinner: "<em>Loading…</em>" | |
}); | |
var _create = prototype._create; | |
prototype._create = function() { | |
_create.call( this ); | |
var self = this; |
/** | |
* jQuery.support.cssProperty | |
* To verify that a CSS property is supported | |
* (or any of its browser-specific implementations) | |
* | |
* @param p css property name | |
* @param rp optional, if set to true, the css property name will be returned | |
* instead of a boolean support indicator | |
* @return {mixed} | |
* |
/*! | |
* jQuery TextChange Plugin | |
* http://www.zurb.com/playground/jquery-text-change-custom-event | |
* | |
* Copyright 2010, ZURB | |
* Released under the MIT License | |
*/ | |
(function ($) { | |
$.event.special.textchange = { |