/** * class ${1/\s.*//} * Behavior class for ${4:managing behavior of ...} * See http://www.danwebb.net/2006/9/3/low-pro-unobtrusive-scripting-for-prototype **/ var ${1:class_name} = Behavior.create({ options : { ${2:option_name} : '${3:option_value}' }, /** * ${1/\s.*//}#initialize( [ opts = { ${2/\s.*//} : '${3/\s.*//}' }] ) * - options (Object): Will be merged with the default options, good for overriding texts, urls, dom references, etc * Gets called when the element is loaded */ initialize : function( opts ){ this.options = $H(this.options).merge( opts ).toObject(); ${0:// alert( this.options.${2/\s.*//} )} } );