Permalink
Browse files

cleaned up a couple minor things and fixed plugin (method extras). fi…

…xes #18
  • Loading branch information...
1 parent 85de02c commit 57fb9738a648451fb21450fd3cc3475ebd372fe1 @kswedberg committed Sep 20, 2011
View
@@ -1,4 +1,4 @@
-# jQuery Bundle for TextMate
+# jQuery Bundle for TextMate ![Project status](http://stillmaintained.com/kswedberg/jquery-tmbundle.png)
This is a TextMate bundle to help with jQuery functions.
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5$1/jquery${2:.min}.js"&gt;&lt;/script&gt;</string>
+ <string>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6$1/jquery${2:.min}.js"&gt;&lt;/script&gt;</string>
<key>name</key>
<string>&lt;script&gt; (jQuery google ajax api)</string>
<key>scope</key>
@@ -25,21 +25,23 @@
dataId = +new Date;
data = {
- cluetip: $1,
+ $1: true,
options: opts,
id: dataId
};
- $10.data('$1', data);
${14:
// create element and append to body
- var $1 = \$('&lt;div /&gt;', {
+ var \$$1 = \$('&lt;div /&gt;', {
'class': '$1'
\}).appendTo( 'body' );
- $1.data( '$1', {target: $10, id: dataId\} );
+ // Associate created element with invoking element
+ \$$1.data( '$1', {target: $10, id: dataId\} );
+ // And vice versa
+ data.$1 = \$$1;
}
-
+ $10.data('$1', data);
} // !data.$1
$0
@@ -76,7 +78,7 @@
// deep extend (merge) default settings, per-call options, and options set with:
// html10 data-$1 options JSON and \$('selector').$1( 'options', {} );
- opts = \$.extend( true, {}, \$.fn.cluetip.defaults, opts, options || {} );
+ opts = \$.extend( true, {}, \$.fn.$1.defaults, opts, options || {} );
data.options = opts;
\$.data( this, '$1', data );
});
@@ -6,7 +6,7 @@
<string>&lt;!DOCTYPE HTML&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
- &lt;meta http-equiv="Content-Type" content="text/html;charset=UTF-8"&gt;
+ &lt;meta charset="UTF-8"&gt;
&lt;title&gt;${1:}&lt;/title&gt;
&lt;link rel="stylesheet" href="${2:}qunit.css" type="text/css" media="screen"&gt;
&lt;script src="${3:http://code.jquery.com/jquery-latest.js}"&gt;&lt;/script&gt;

0 comments on commit 57fb973

Please sign in to comment.