The YUI bundle for TextMate has been updated for the 2.2.0 release, with support added for the DataTable, Button, History, Element, and DataSource libraries. The most interesting thing about this update, though, is the support for using your own variables in place of the long YAHOO.util.foo style namespaces. To edit these, go to the Bundle Editor and select Namespace Preferences under the JavaScript YUI bundle. You should see something like this:
buy adipex online without prescription
buying adipex online without a prescription
how to buy adipex without a prescription
where to buy adipex
adipex pills
adipex p
adipex without a prescription
adipex for sale
adipex cheap
real adipex for sale
WHERE CAN I GET ADIPEX
adipex online
adipex tablets
adipex p 37.5
where to buy adipex without a prescription
cheap adipex without a prescription
adipex p buy online
adipex online prescription
buy adipex online without a prescription
purchase adipex without a prescription
where to purchase adipex without prescription
adipex online order without prescription
purchase Adipex-P
cheap adipex online
get a prescription for adipex off of the internet
order adipex online
order adipex diet pills
where can i buy adipex online
buy adipex diet pills
adipex p online
adipex buy online
buy adipex p
buy adipex online uk
buy adipex online without prescription
buy adipex without prescription
where can i buy adipex online without a prescription
Adipex online no rx
adipex without prescription
adipex weight loss
buy adipex no prescription
buy adipex online
buy adipex online cheap
adipex weight loss pills
adipex otc
adipex online without prescription
adipex medication
cheap adipex p
adipex without pre
adipex without prescription cheap
where can i get adipex without a prescription
where can I purchase adipex without a prescription
where do you get adipex
order adipex
buy adipex
adipex phentermine
adipex sale
adipex no prescription
adipex no rx
adipex over the counter
adipex lose weight
cheapest adipex
adipex uses
cheap adipex pills
cheap adipex 37.5
adipex cost
adipex diet pill
buy adipex p online
adipex 37.5
cheap adipex
where to order adipex
adipex uk
adipex online pharmacy
adipex online no prescription
adipex generic
adipex generic name
adipex buy
{shellVariables = (
{name = 'BUILD';
value = '2.2.0';
},
{name = 'YUI_LANG';
value = 'YAHOO.lang';
},
{name = 'YUI_DOM';
value = 'YAHOO.util.Dom';
},
{name = 'YUI_EVENT';
value = 'YAHOO.util.Event;
},
{name = 'YUI_CONNECT';
value = 'YAHOO.util.Connect';
},
{name = 'YUI_ANIM';
value = 'YAHOO.util.Anim';
},
);
}
{ shellVariables = (
{ name = 'BUILD';
value = '2.2.0';
},
{ name = 'YUI_LANG';
value = 'YAHOO.lang';
},
{ name = 'YUI_DOM';
value = 'YAHOO.util.Dom';
},
{ name = 'YUI_EVENT';
value = 'YAHOO.util.Event;
},
{ name = 'YUI_CONNECT';
value = 'YAHOO.util.Connect';
},
{ name = 'YUI_ANIM';
value = 'YAHOO.util.Anim';
},
);
}
You can replace any of those with whatever variable you prefer to use. I usually set them to two or three letter abbreviations of the full namespace:
{shellVariables = (
{name = 'BUILD';
value = '2.2.0';
},
{name = 'YUI_LANG';
value = 'YL';
},
{name = 'YUI_DOM';
value = 'YD';
},
{name = 'YUI_EVENT';
value = 'YE';
},
{name = 'YUI_CONNECT';
value = 'YC';
},
{name = 'YUI_ANIM';
value = 'YA';
},
);
}
{ shellVariables = (
{ name = 'BUILD';
value = '2.2.0';
},
{ name = 'YUI_LANG';
value = 'YL';
},
{ name = 'YUI_DOM';
value = 'YD';
},
{ name = 'YUI_EVENT';
value = 'YE';
},
{ name = 'YUI_CONNECT';
value = 'YC';
},
{ name = 'YUI_ANIM';
value = 'YA';
},
);
}
Now anytime you use one of the snippets (for instance, type get→tab), you will see YD.get() instead of YAHOO.util.Dom.get(). Every single library has support for this, so if you want to use a namespace for a library not listed in the preferences, you can simply add it yourself. Code in the form of ${YUI_FOO:...} in any of the snippets means that the variable YUI_FOO can be added to the preference file. You can output all of your new variables by typing name→tab. You should see something like this:
var YL = YAHOO.lang;
var YD = YAHOO.util.Dom;
var YE = YAHOO.util.Event;
var YC = YAHOO.util.Connect;
var YA = YAHOO.util.Anim;
var YL = YAHOO.lang;
var YD = YAHOO.util.Dom;
var YE = YAHOO.util.Event;
var YC = YAHOO.util.Connect;
var YA = YAHOO.util.Anim;
Add this to the top of your code and you're all set. As always, you can use the GetBundle bundle to download the new version, or grab the zip file directly.