Permalink
Browse files

my search/replace was a little off on that last commit

  • Loading branch information...
1 parent 0a583ee commit bbd3802511f812f118e853f73e4974a9fd049a07 @anutron anutron committed Jun 10, 2009
Showing with 183 additions and 183 deletions.
  1. +1 −1 Source/3rdParty/Autocompleter.Clientcide.js
  2. +1 −1 Source/3rdParty/Autocompleter.Observer.js
  3. +1 −1 Source/3rdParty/Autocompleter.Remote.js
  4. +2 −2 Source/3rdParty/Autocompleter.js
  5. +10 −10 Source/3rdParty/Lightbox.js
  6. +1 −1 Source/Beta/Element.Delegation.js
  7. +1 −1 Source/Beta/PostEditor.Forum.js
  8. +1 −1 Source/Beta/PostEditor.js
  9. +4 −4 Source/Browser/FixPNG.js
  10. +9 −9 Source/Compatability/Element.Forms.Compat.js
  11. +1 −1 Source/Compatability/Element.MouseOvers.Compat.js
  12. +1 −1 Source/Compatability/OverText.Compat.js
  13. +4 −4 Source/Forms/Confirmer.js
  14. +3 −3 Source/Forms/DatePicker.Extras.js
  15. +3 −3 Source/Forms/DatePicker.js
  16. +4 −4 Source/Forms/FormValidator.Tips.js
  17. +3 −3 Source/Forms/Fupdate.Append.js
  18. +4 −4 Source/Forms/Fupdate.Prompt.js
  19. +11 −11 Source/Forms/Fupdate.js
  20. +5 −5 Source/Forms/InputFocus.js
  21. +7 −7 Source/Forms/ProductPicker.js
  22. +9 −9 Source/Forms/SimpleEditor.js
  23. +4 −4 Source/Forms/TagMaker.js
  24. +7 −7 Source/Fx/Fx.Marquee.js
  25. +2 −2 Source/Layout/Collapsable.js
  26. +1 −1 Source/Layout/HtmlTable.js
  27. +2 −2 Source/Layout/MenuSlider.js
  28. +4 −4 Source/Layout/MooScroller.js
  29. +4 −4 Source/Layout/MultipleOpenAccordion.js
  30. +6 −6 Source/Layout/SimpleCarousel.js
  31. +11 −11 Source/Layout/SimpleSlideShow.js
  32. +4 −4 Source/Layout/TabSwapper.js
  33. +8 −8 Source/UI/IconMenu.js
  34. +2 −2 Source/UI/Modalizer.js
  35. +1 −1 Source/UI/ObjectBrowser.js
  36. +4 −4 Source/UI/PopupDetails.js
  37. +1 −1 Source/UI/StickyWin.PointyTip.js
  38. +11 −11 Source/UI/StickyWin.UI.Pointy.js
  39. +3 −3 Source/UI/StickyWin.UI.js
  40. +5 −5 Source/UI/StickyWin.js
  41. +2 −2 Source/UI/StyleWriter.js
  42. +3 −3 Source/UI/Tips.Pointy.js
  43. +10 −10 Source/UI/Waiter.js
  44. +1 −1 Source/Utilities/DollarG.js
  45. +1 −1 Source/scripts.json
View
2 Source/3rdParty/Autocompleter.Clientcide.js
@@ -16,7 +16,7 @@ License:
},
writeStyle: function(){
window.addEvent('domready', function(){
- if ($('AutocompleterCss')) return;
+ if (document.id('AutocompleterCss')) return;
new Element('link', {
rel: 'stylesheet',
media: 'screen',
View
2 Source/3rdParty/Autocompleter.Observer.js
@@ -19,7 +19,7 @@ var Observer = new Class({
initialize: function(el, onFired, options){
this.setOptions(options);
this.addEvent('onFired', onFired);
- this.element = $(el) || $$(el);
+ this.element = document.id(el) || document.id(el);
/* Clientcide change */
this.boundChange = this.changed.bind(this);
this.resume();
View
2 Source/3rdParty/Autocompleter.Remote.js
@@ -27,7 +27,7 @@ Autocompleter.Ajax.Base = new Class({
initialize: function(element, options) {
this.parent(element, options);
- var indicator = $(this.options.indicator);
+ var indicator = document.id(this.options.indicator);
if (indicator) {
this.addEvents({
'onRequest': indicator.show.bind(indicator),
View
4 Source/3rdParty/Autocompleter.js
@@ -57,7 +57,7 @@ Autocompleter.Base = new Class({
},
initialize: function(element, options) {
- this.element = $(element);
+ this.element = document.id(element);
this.setOptions(options);
this.options.separatorSplit = new RegExp("\s*["+this.options.separator.trim()+"]\s*/");
this.build();
@@ -79,7 +79,7 @@ Autocompleter.Base = new Class({
* Override this function to modify the html generation.
*/
build: function() {
- if ($(this.options.customChoices)) {
+ if (document.id(this.options.customChoices)) {
this.choices = this.options.customChoices;
} else {
this.choices = new Element('ul', {
View
20 Source/3rdParty/Lightbox.js
@@ -35,8 +35,8 @@ var Lightbox = new Class({
var args = Array.link(arguments, {options: Object.type, links: Array.type});
this.setOptions(args.options);
var anchors = args.links || this.options.anchors;
- if (this.options.autoScanLinks && !anchors) anchors = $$('a[rel^='+this.options.relString+']');
- if (!$$(anchors).length) return; //no links!
+ if (this.options.autoScanLinks && !anchors) anchors = document.id('a[rel^='+this.options.relString+']');
+ if (!document.id(anchors).length) return; //no links!
this.addAnchors(anchors);
if (this.options.useDefaultCss) this.addCss();
window.addEvent('domready', this.addHtmlElements.bind(this));
@@ -45,7 +45,7 @@ var Lightbox = new Class({
anchors: [],
addAnchors: function(anchors){
- $$(anchors).each(function(el){
+ document.id(anchors).each(function(el){
if (!el.retrieve('lightbox')) {
el.store('lightbox', this);
this.attach(el);
@@ -128,7 +128,7 @@ var Lightbox = new Class({
addCss: function(){
window.addEvent('domready', function(){
- if ($('LightboxCss')) return;
+ if (document.id('LightboxCss')) return;
new Element('link', {
rel: 'stylesheet',
media: 'screen',
@@ -140,7 +140,7 @@ var Lightbox = new Class({
},
click: function(el){
- link = $(el);
+ link = document.id(el);
var rel = link.get('rel')||this.options.relString;
if (rel == this.options.relString) return this.show(link.get('href'), link.get('title'));
@@ -176,8 +176,8 @@ var Lightbox = new Class({
},
setup: function(open){
- var elements = $$('iframe');
- elements.extend($$(Browser.Engine.trident ? 'select' : 'embed, object'));
+ var elements = document.id('iframe');
+ elements.extend(document.id(Browser.Engine.trident ? 'select' : 'embed, object'));
elements.reverse().each(function(el){
if (open) el.store('lbBackupStyle', el.getStyle('visibility') || 'visible');
var vis = (open ? 'hidden' : el.retrieve('lbBackupStyle') || 'visible');
@@ -240,9 +240,9 @@ var Lightbox = new Class({
this.caption.set('html',this.images[this.activeImage][1] || '');
this.number.set('html',(!this.options.showCounter || (this.images.length == 1)) ? '' : 'Image '+(this.activeImage+1)+' of '+this.images.length);
- if (this.activeImage) $(this.preloadPrev).set('src', this.images[this.activeImage-1][0]);
+ if (this.activeImage) document.id(this.preloadPrev).set('src', this.images[this.activeImage-1][0]);
if (this.activeImage != (this.images.length - 1))
- $(this.preloadNext).set('src', this.images[this.activeImage+1][0]);
+ document.id(this.preloadNext).set('src', this.images[this.activeImage+1][0]);
if (this.center.clientHeight != this.image.offsetHeight){
this.fx.resize.start({height: this.image.offsetHeight});
break;
@@ -291,4 +291,4 @@ var Lightbox = new Class({
return;
}
});
-window.addEvent('domready', function(){if ($(document.body).get('html').match(/rel=?.lightbox/i)) new Lightbox()});
+window.addEvent('domready', function(){if (document.id(document.body).get('html').match(/rel=?.lightbox/i)) new Lightbox()});
View
2 Source/Beta/Element.Delegation.js
@@ -19,7 +19,7 @@ Script: Element.Delegation.js
var check = function(e, test){
// walk up tree from event target, testing against selector
for (var t = e.target; t && t != this; t = t.parentNode)
- if (Element.match(t, test)) return $(t);
+ if (Element.match(t, test)) return document.id(t);
};
var regs = {
View
2 Source/Beta/PostEditor.Forum.js
@@ -28,7 +28,7 @@ PostEditor.Forum = new Class({
"js" : ["<javascript>\n ","something here","\n</javascript>"],
"$" : {
- snippet:["$('","id')","."],
+ snippet:["document.id('","id')","."],
tab:['id','']
},
View
2 Source/Beta/PostEditor.js
@@ -28,7 +28,7 @@ var PostEditor = new Class({
initialize: function(el, options){
if (Browser.Engine.trident) return;
- this.element = $(el);
+ this.element = document.id(el);
this.setOptions(options);
this.styles = {
line_height: this.element.getStyle('line-height').toInt() || 14,
View
8 Source/Browser/FixPNG.js
@@ -9,7 +9,7 @@ $extend(Browser, {
fixPNG: function(el) {
try {
if (Browser.Engine.trident4){
- el = $(el);
+ el = document.id(el);
if (!el) return el;
if (el.get('tag') == "img" && el.get('src').test(".png")) {
var vis = el.isDisplayed();
@@ -76,15 +76,15 @@ $extend(Browser, {
//TODO: should this also be testing the css background-image property for pngs?
//Q: should it return an array of all those it has tweaked?
if (document.getElements){ // more efficient but requires 'selectors'
- el = $(el||document.body);
+ el = document.id(el||document.body);
el.getElements('img[src$=.png]').addClass(className);
} else { // scan the whole page
- var els = $$('img').each(function(img) {
+ var els = document.id('img').each(function(img) {
if (Browser.pngTest(img.src)){
img.addClass(className);
}
});
}
}
});
-if (Browser.Engine.trident4) window.addEvent('domready', function(){$$('img.fixPNG').each(Browser.fixPNG)});
+if (Browser.Engine.trident4) window.addEvent('domready', function(){document.id('img.fixPNG').each(Browser.fixPNG)});
View
18 Source/Compatability/Element.Forms.Compat.js
@@ -27,15 +27,15 @@ Sets the value of the form Element.
#### Examples:
- $('mySelect').set('inputValue', 'option1'); //option with value 'option1' is selected
- $('myMultiSelect').set('inputValue', ['option1', 'option2']);
+ document.id('mySelect').set('inputValue', 'option1'); //option with value 'option1' is selected
+ document.id('myMultiSelect').set('inputValue', ['option1', 'option2']);
//options w/ values 'option1' and 'option2' are selected
- $('myRadio').set('inputValue', true); //the radio is checked
- $('myRadio').set('inputValue', 'red'); //if the radio's name is 'red', it is checked
- $('myCheckbox').set('inputValue', true); //the checkbox is checked
- $('myCheckbox').set('inputValue', 'red'); //if the checkbox's name is 'red', it is checked
- $('myTextArea').set('inputValue', 'foo'); //the value of the textarea is 'foo'
- $('myTextInput').set('inputValue', 'foo'); //the value of the text input is 'foo'
+ document.id('myRadio').set('inputValue', true); //the radio is checked
+ document.id('myRadio').set('inputValue', 'red'); //if the radio's name is 'red', it is checked
+ document.id('myCheckbox').set('inputValue', true); //the checkbox is checked
+ document.id('myCheckbox').set('inputValue', 'red'); //if the checkbox's name is 'red', it is checked
+ document.id('myTextArea').set('inputValue', 'foo'); //the value of the textarea is 'foo'
+ document.id('myTextInput').set('inputValue', 'foo'); //the value of the text input is 'foo'
### Getter:
@@ -76,7 +76,7 @@ Element.Properties.inputValue = {
case 'radio':
var checked;
if (this.get('checked')) return this.get('value');
- $(this.getParent('form')||document.body).getElements('input').each(function(input){
+ document.id(this.getParent('form')||document.body).getElements('input').each(function(input){
if (input.get('name') == this.get('name') && input.get('checked')) checked = input.get('value');
}, this);
return checked||null;
View
2 Source/Compatability/Element.MouseOvers.Compat.js
@@ -51,7 +51,7 @@ Element.implement({
}
});
window.addEvent('domready', function(){
- $$('img.autoMouseOver').each(function(img){
+ document.id('img.autoMouseOver').each(function(img){
img.autoMouseOvers();
});
});
View
2 Source/Compatability/OverText.Compat.js
@@ -3,7 +3,7 @@ OverText = Class.refactor(OverText, {
this.instances = [];
if (['array', 'string'].contains($type(inputs))) {
this.setOptions(options);
- $$(inputs).each(this.addElement, this);
+ document.id(inputs).each(this.addElement, this);
} else {
return this.previous.apply(this, arguments);
}
View
8 Source/Forms/Confirmer.js
@@ -35,8 +35,8 @@ var Confirmer = new Class({
},
initialize: function(options){
this.setOptions(options);
- this.options.positionOptions.relativeTo = $(this.options.positionOptions.relativeTo) || document.body;
- this.prompter = ($(this.options.msg))?$(this.options.msg):this.makePrompter(this.options.msg);
+ this.options.positionOptions.relativeTo = document.id(this.options.positionOptions.relativeTo) || document.body;
+ this.prompter = (document.id(this.options.msg))?document.id(this.options.msg):this.makePrompter(this.options.msg);
if (this.options.reposition){
this.prompter.setStyles({
position: 'absolute',
@@ -63,8 +63,8 @@ var Confirmer = new Class({
if (!this.paused)this.stop();
var msg = (options)?options.msg:false;
options = $merge(this.options, {saveAsDefault: false}, options||{});
- if ($(options.msg) && msg) this.msgHolder.empty().adopt(options.msg);
- else if (!$(options.msg) && options.msg) this.msgHolder.empty().appendText(options.msg);
+ if (document.id(options.msg) && msg) this.msgHolder.empty().adopt(options.msg);
+ else if (!document.id(options.msg) && options.msg) this.msgHolder.empty().appendText(options.msg);
if (!this.paused) {
if (options.reposition) this.position(options.positionOptions);
(function(){
View
6 Source/Forms/DatePicker.Extras.js
@@ -37,10 +37,10 @@ DatePicker = Class.refactor(DatePicker, {
this.whens = (this.options.range)?['start', 'end']:['start'];
if ($type(inputs) == 'object') {
this.inputs = $H(inputs);
- } else if ($type($(inputs)) == "element") {
- this.inputs = $H({'start': $(inputs)});
+ } else if ($type(document.id(inputs)) == "element") {
+ this.inputs = $H({'start': document.id(inputs)});
} else if ($type(inputs) == "array"){
- inputs = $$(inputs);
+ inputs = document.id(inputs);
this.inputs = $H({});
this.whens.each(function(when, i){
this.inputs.set(when, inputs[i]);
View
6 Source/Forms/DatePicker.js
@@ -65,7 +65,7 @@ var DatePicker;
initialize: function(input, options){
DPglobal(); //make sure controller is setup
- if ($(input)) this.inputs = $H({start: $(input)});
+ if (document.id(input)) this.inputs = $H({start: document.id(input)});
this.today = new Date();
this.setOptions(options);
if (this.options.useDefaultCss) this.createStyle(this.options.defaultCss, 'datePickerStyle');
@@ -106,7 +106,7 @@ var DatePicker;
}.bind(this));
}, this);
this.options.additionalShowLinks.each(function(lnk){
- $(lnk).addEvent('click', this.show.bind(this))
+ document.id(lnk).addEvent('click', this.show.bind(this))
}, this);
},
getDates: function(dates, getFromInputs){
@@ -284,7 +284,7 @@ var DatePicker;
var monthyr = new Element('span', {
html: Date.getMsg('months')[date.getMonth()] + " " + date.getFullYear()
});
- $(this.rows[0].getElements('td')[1]).empty().adopt(monthyr);
+ document.id(this.rows[0].getElements('td')[1]).empty().adopt(monthyr);
var atDate = startDate.clone();
this.rows.each(function(row, i){
if (i < 2) return;
View
8 Source/Forms/FormValidator.Tips.js
@@ -49,7 +49,7 @@ FormValidator.Tips = new Class({
this.advices.push(advice);
advice.msgs = {};
field.store('PointyTip', advice);
- $(advice).addClass(cssClass).set('id', 'advice-'+className+'-'+this.getFieldId(field));
+ document.id(advice).addClass(cssClass).set('id', 'advice-'+className+'-'+this.getFieldId(field));
}
field.store('advice-'+className, advice);
this.appendAdvice(className, field, error, warn);
@@ -109,16 +109,16 @@ FormValidator.Tips = new Class({
//Check for error position prop
var props = field.get('validatorProps');
//Build advice
- if (!props.msgPos || !$(props.msgPos)) {
+ if (!props.msgPos || !document.id(props.msgPos)) {
switch (field.type.toLowerCase()) {
case 'radio':
var p = field.getParent().adopt(advice);
break;
default:
- $(advice).inject($(field), 'after');
+ document.id(advice).inject(document.id(field), 'after');
};
} else {
- $(props.msgPos).grab(advice);
+ document.id(props.msgPos).grab(advice);
}
advice.position();
}
View
6 Source/Forms/Fupdate.Append.js
@@ -19,10 +19,10 @@ Fupdate.Append = new Class({
makeRequest: function(){
this.request = new Request.HTML($merge({
- url: $(this).get('action'),
- method: $(this).get('method') || 'post',
+ url: document.id(this).get('action'),
+ method: document.id(this).get('method') || 'post',
emulation: false,
- waiterTarget: $(this)
+ waiterTarget: document.id(this)
}, this.options.requestOptions, {
evalScripts: false
})
View
8 Source/Forms/Fupdate.Prompt.js
@@ -23,15 +23,15 @@ License:
},
initialize: function(form, update, options){
this.setOptions(options);
- this.update = $(update);
+ this.update = document.id(update);
this.makeStickyWin(form);
this.swin.addEvent('close', function(){
if (this.request && this.request.waiter) this.request.waiter.stop();
});
this.addEvent('success', this.hide.bind(this));
},
makeStickyWin: function(form){
- if ($(form)) form = $(form);
+ if (document.id(form)) form = document.id(form);
this.swin = new this.options.stickyWinToUse({
content: this.options.useUi?StickyWin.ui(this.options.caption, form, this.options.stickyWinUiOptions):form,
showNow: false
@@ -51,7 +51,7 @@ License:
this.setOptions({
requestOptions: {
useWaiter: this.options.useWaiter,
- waiterTarget: $(this),
+ waiterTarget: document.id(this),
waiterOptions: {
layer: {
styles: {
@@ -63,7 +63,7 @@ License:
});
this.makeRequest();
this.addFormEvent();
- $(this).store('fupdate', this);
+ document.id(this).store('fupdate', this);
}
};
};
View
22 Source/Forms/Fupdate.js
@@ -30,14 +30,14 @@ var Fupdate;
property: 'fupdate',
initialize: function(form, update, options) {
- this.element = $(form);
+ this.element = document.id(form);
if (this.occlude()) return this.occluded;
- this.update = $(update);
+ this.update = document.id(update);
this.setOptions(options);
this.makeRequest();
if (this.options.resetForm) {
this.request.addEvent('success', function(){
- $try(function(){ $(this).reset(); }.bind(this));
+ $try(function(){ document.id(this).reset(); }.bind(this));
if (window.OverText) OverText.update();
}.bind(this));
}
@@ -46,11 +46,11 @@ var Fupdate;
makeRequest: function(){
this.request = new Request.HTML($merge({
- url: $(this).get('action'),
+ url: document.id(this).get('action'),
update: this.update,
emulation: false,
- waiterTarget: $(this),
- method: $(this).get('method') || 'post'
+ waiterTarget: document.id(this),
+ method: document.id(this).get('method') || 'post'
}, this.options.requestOptions)).addEvents({
success: function(text, xml){
['success', 'complete'].each(function(evt){
@@ -67,7 +67,7 @@ var Fupdate;
},
addFormEvent: function(){
- var fv = $(this).retrieve('validator');
+ var fv = document.id(this).retrieve('validator');
if (fv) {
fv.addEvent('onFormValidate', function(valid, form, e) {
if (valid || !fv.options.stopOnFailure) {
@@ -76,18 +76,18 @@ var Fupdate;
}
}.bind(this));
} else {
- $(this).addEvent('submit', function(e){
+ document.id(this).addEvent('submit', function(e){
e.stop();
this.send();
}.bind(this));
}
},
send: function(){
- var str = $(this).toQueryString().trim();
+ var str = document.id(this).toQueryString().trim();
formData = str.parseQueryString();
var data = $H(this.options.extraData).combine(formData);
- this.fireEvent('send', [$(this), data]);
+ this.fireEvent('send', [document.id(this), data]);
this.request.send({data: data});
return this;
}
@@ -101,7 +101,7 @@ var Fupdate;
var update = opt.update || opt.updateId;
var fupdate = this.retrieve('fupdate');
if (update) {
- if (fupdate) fupdate.update = $(update);
+ if (fupdate) fupdate.update = document.id(update);
this.store('fupdate:update', update);
}
if (opt.options) {
View
10 Source/Forms/InputFocus.js
@@ -13,7 +13,7 @@ var InputFocus = new Class({
hideOutline: false
},
initialize: function(input, options) {
- this.element = $(input);
+ this.element = document.id(input);
if (this.occlude('focuser')) return this.occluded;
this.setOptions(options);
this.element.addEvents({
@@ -24,13 +24,13 @@ var InputFocus = new Class({
focus: function(){
if (this.options.hideOutline) {
(function(){
- if (Browser.Engine.trident) $(this).set('hideFocus', true);
- else $(this).setStyle('outline', '0');
+ if (Browser.Engine.trident) document.id(this).set('hideFocus', true);
+ else document.id(this).setStyle('outline', '0');
}).delay(500, this);
}
- $(this).addClass(this.options.focusedClass);
+ document.id(this).addClass(this.options.focusedClass);
},
blur: function(){
- $(this).removeClass(this.options.focusedClass);
+ document.id(this).removeClass(this.options.focusedClass);
}
});
View
14 Source/Forms/ProductPicker.js
@@ -45,7 +45,7 @@ var ProductPicker = new Class({
initialize: function(input, picklets, options){
this.setOptions(options);
this.writeCss();
- this.input = $(input);
+ this.input = document.id(input);
if (!this.input) return;
this.picklets = picklets;
this.setUpObservers();
@@ -162,7 +162,7 @@ var ProductPicker = new Class({
this.shown = true;
(function(){
if (!this.shown) return;
- $(tip).setStyles({ display:'block', opacity: 0 });
+ document.id(tip).setStyles({ display:'block', opacity: 0 });
new Fx.Tween(tip, {property: 'opacity', duration: 300 }).start(0,.9);
}).delay(500, this);
},
@@ -192,7 +192,7 @@ var ProductPicker = new Class({
}catch(e){dbug.log(e); return false;}
},
getResults: function(form, picklet){
- if (form.get('tag') != "form") form = $$('form').filter(function(fm){ return fm.hasChild(form) })[0];
+ if (form.get('tag') != "form") form = document.id('form').filter(function(fm){ return fm.hasChild(form) })[0];
if (!form) {
dbug.log('error computing form');
return null;
@@ -278,7 +278,7 @@ var ProductPicker = new Class({
this.sliderContent.empty();
var content = this.getPreview(index);
if ($type(content)=="string") this.sliderContent.set('html', content);
- else if ($(content)) this.sliderContent.adopt(content);
+ else if (document.id(content)) this.sliderContent.adopt(content);
this.showPreview.delay(200, this);
}.bind(this));
pDiv.addEvent('mouseleave', function(e){
@@ -314,7 +314,7 @@ var ProductPicker = new Class({
return this;
},
hide: function(){
- $$('.tool-tip').hide();
+ document.id('.tool-tip').hide();
this.swin.hide();
this.focused = false;
return this;
@@ -324,7 +324,7 @@ var ProductPicker = new Class({
if (this.options.showOnFocus) this.input.addEvent('focus', this.show.bind(this));
if (this.options.additionalShowLinks.length>0) {
this.options.additionalShowLinks.each(function(lnk){
- $(lnk).addEvent('click', this.show.bind(this));
+ document.id(lnk).addEvent('click', this.show.bind(this));
}, this);
}
}catch(e){dbug.log(e);}
@@ -403,7 +403,7 @@ var FormPickers = new Class({
},
initialize: function(form, options){
this.setOptions(options);
- this.form = $(form);
+ this.form = document.id(form);
this.inputs = this.form.getElements(this.options.inputs);
this.setUpInputs();
},
View
18 Source/Forms/SimpleEditor.js
@@ -9,16 +9,16 @@ var SimpleEditor = new Class({
Implements: [Class.ToElement, Class.Occlude],
property: 'SimpleEditor',
initialize: function(input, buttons, commands){
- this.element = $(input);
+ this.element = document.id(input);
if (this.occlude()) return this.occluded;
this.commands = new Hash($extend(SimpleEditor.commands, commands||{}));
- this.buttons = $$(buttons);
+ this.buttons = document.id(buttons);
this.buttons.each(function(button){
button.addEvent('click', function() {
this.exec(button.get('rel'));
}.bind(this));
}.bind(this));
- $(this).addEvent('keydown', function(e){
+ document.id(this).addEvent('keydown', function(e){
if (e.control||e.meta) {
var key = this.shortCutToKey(e.key, e.shift);
if (key) {
@@ -47,16 +47,16 @@ var SimpleEditor = new Class({
},
exec: function(key){
var currentScrollPos;
- if ($(this).scrollTop || $(this).scrollLeft) {
+ if (document.id(this).scrollTop || document.id(this).scrollLeft) {
currentScrollPos = {
- scrollTop: $(this).getScroll().y,
- scrollLeft: $(this).getScroll().x
+ scrollTop: document.id(this).getScroll().y,
+ scrollLeft: document.id(this).getScroll().x
};
}
- if (this.commands.has(key)) this.commands.get(key).command($(this));
+ if (this.commands.has(key)) this.commands.get(key).command(document.id(this));
if (currentScrollPos) {
- $(this).set('scrollTop', currentScrollPos.getScroll().y);
- $(this).set('scrollLeft', currentScrollPos.getScroll().x);
+ document.id(this).set('scrollTop', currentScrollPos.getScroll().y);
+ document.id(this).set('scrollLeft', currentScrollPos.getScroll().x);
}
}
});
View
8 Source/Forms/TagMaker.js
@@ -61,7 +61,7 @@ var TagMaker = new Class({
this.createStyle(this.options.css.replace("%baseHref%", this.options.baseHref, "g"), 'defaultTagBuilderStyle');
},
prompt: function(target){
- this.target = $(target);
+ this.target = document.id(target);
var content = this.getContent();
if (this.options.clearOnPrompt) this.clear();
if (content) {
@@ -72,7 +72,7 @@ var TagMaker = new Class({
draggable: true,
relativeTo: relativeTo,
onClose: function(){
- $$('.tagMaker-tip').hide();
+ document.id('.tagMaker-tip').hide();
}
});
}
@@ -170,7 +170,7 @@ var TagMaker = new Class({
}).adopt(this.form);
this.validator = new FormValidator.Inline(this.form);
this.validator.insertAdvice = function(advice, field){
- var p = $(field.parentNode);
+ var p = document.id(field.parentNode);
if (p) p.adopt(advice);
};
}
@@ -225,7 +225,7 @@ var TagMaker = new Class({
this.target.selectRange(this.range.start, output.value.length + this.range.start);
this.fireEvent('onChoose');
- $$('.tagMaker-tip').hide();
+ document.id('.tagMaker-tip').hide();
this.win.hide();
return;
}
View
14 Source/Fx/Fx.Marquee.js
@@ -21,7 +21,7 @@ Fx.Marquee = new Class({
onMessage: $empty */
},
initialize: function(container, options){
- container = $(container);
+ container = document.id(container);
var msg = this.options.currentMessage || (container.getChildren().length == 1)?container.getFirst():'';
var wrapper = new Element('div', {
styles: { position: 'relative' },
@@ -31,8 +31,8 @@ Fx.Marquee = new Class({
this.current = this.wrapMessage(msg);
},
wrapMessage: function(msg){
- if ($(msg) && $(msg).hasClass('fxMarquee')) { //already set up
- var wrapper = $(msg);
+ if (document.id(msg) && document.id(msg).hasClass('fxMarquee')) { //already set up
+ var wrapper = document.id(msg);
} else {
//create the wrapper
var wrapper = new Element('span', {
@@ -41,7 +41,7 @@ Fx.Marquee = new Class({
position: 'relative'
}
});
- if ($(msg)) wrapper.grab($(msg)); //if the message is a dom element, inject it inside the wrapper
+ if (document.id(msg)) wrapper.grab(document.id(msg)); //if the message is a dom element, inject it inside the wrapper
else if ($type(msg) == "string") wrapper.set('html', msg); //else set it's value as the inner html
}
return wrapper.inject(this.element); //insert it into the container
@@ -57,9 +57,9 @@ Fx.Marquee = new Class({
var chain = this.$chain?$A(this.$chain):[];
//clear teh chain
this.clearChain();
- this.element = $(this.element);
- this.current = $(this.current);
- this.message = $(this.message);
+ this.element = document.id(this.element);
+ this.current = document.id(this.current);
+ this.message = document.id(this.message);
//execute the hide effect
this.start(this.options.hideEffect).chain(function(){
//if we're reverting, hide the message and show the original
View
4 Source/Layout/Collapsable.js
@@ -8,8 +8,8 @@ License:
var Collapsable = new Class({
Extends: Fx.Reveal,
initialize: function(clicker, section, options) {
- this.clicker = $(clicker);
- this.section = $(section);
+ this.clicker = document.id(clicker);
+ this.section = document.id(section);
this.parent(this.section, options);
this.addEvents();
},
View
2 Source/Layout/HtmlTable.js
@@ -36,7 +36,7 @@ var HtmlTable = new Class({
var td = new Element('td').inject(tr);
if (tdata.properties) td.setProperties(tdata.properties);
function setContent(content){
- if ($(content)) td.adopt($(content));
+ if (document.id(content)) td.adopt(document.id(content));
else td.set('html', content);
};
if ($defined(tdata.content)) setContent(tdata.content);
View
4 Source/Layout/MenuSlider.js
@@ -21,8 +21,8 @@ var MenuSlider = new Class({
useIframeShim: true
},
initialize: function(menu, subMenu, options) {
- this.menu = $(menu);
- this.subMenu = $(subMenu);
+ this.menu = document.id(menu);
+ this.subMenu = document.id(subMenu);
this.setOptions(options);
this.makeSlider();
this.hoverGroup = new HoverGroup($merge(this.options.hoverGroupOptions, {
View
8 Source/Layout/MooScroller.js
@@ -27,8 +27,8 @@ var MooScroller = new Class({
this.setOptions(options);
this.horz = (this.options.mode == "horizontal");
- this.content = $(content).setStyle('overflow', 'hidden');
- this.knob = $(knob);
+ this.content = document.id(content).setStyle('overflow', 'hidden');
+ this.knob = document.id(knob);
this.track = this.knob.getParent();
this.setPositions();
@@ -58,7 +58,7 @@ var MooScroller = new Class({
$clear(this.scrolling);
}.bind(this);
['forward','back'].each(function(direction) {
- var lnk = $(this.options.scrollLinks[direction]);
+ var lnk = document.id(this.options.scrollLinks[direction]);
if (lnk) {
lnk.addEvents({
mousedown: function() {
@@ -72,7 +72,7 @@ var MooScroller = new Class({
this.knob.addEvent('click', clearScroll.bind(this));
window.addEvent('domready', function(){
try {
- $(document.body).addEvent('mouseup', clearScroll.bind(this));
+ document.id(document.body).addEvent('mouseup', clearScroll.bind(this));
}catch(e){}
}.bind(this));
},
View
8 Source/Layout/MultipleOpenAccordion.js
@@ -26,8 +26,8 @@ var MultipleOpenAccordion = new Class({
initialize: function(options){
var args = Array.link(arguments, {options: Object.type, elements: Array.type});
this.setOptions(args.options);
- elements = $$(this.options.elements);
- $$(this.options.togglers).each(function(toggler, idx){
+ elements = document.id(this.options.elements);
+ document.id(this.options.togglers).each(function(toggler, idx){
this.addSection(toggler, elements[idx], idx);
}, this);
if (this.togglers.length) {
@@ -38,8 +38,8 @@ var MultipleOpenAccordion = new Class({
this.closeSections = this.hideSections.bind(this);
},
addSection: function(toggler, element){
- toggler = $(toggler);
- element = $(element);
+ toggler = document.id(toggler);
+ element = document.id(element);
var test = this.togglers.contains(toggler);
var len = this.togglers.length;
this.togglers.include(toggler);
View
12 Source/Layout/SimpleCarousel.js
@@ -23,14 +23,14 @@ var SimpleCarousel = new Class({
autoplay: true
},
initialize: function(container, slides, buttons, options){
- this.container = $(container);
+ this.container = document.id(container);
var instance = this.container.retrieve('SimpleCarouselInstance');
if (instance) return instance;
this.container.store('SimpleCarouselInstance', this);
this.setOptions(options);
this.container.addClass('hasCarousel');
- this.slides = $$(slides);
- this.buttons = $$(buttons);
+ this.slides = document.id(slides);
+ this.buttons = document.id(buttons);
this.createFx();
this.showSlide(this.options.startIndex);
if (this.options.autoplay) this.autoplay();
@@ -42,7 +42,7 @@ var SimpleCarousel = new Class({
},
setupAction: function(action) {
this.buttons.each(function(el, idx){
- $(el).addEvent(action, function() {
+ document.id(el).addEvent(action, function() {
this.slideFx.setOptions(this.slideFx.options, {duration: this.options.rotateActionDuration});
if (this.currentSlide != idx) this.showSlide(idx);
this.stop();
@@ -59,12 +59,12 @@ var SimpleCarousel = new Class({
var action = {};
this.slides.each(function(slide, index){
if (index == slideIndex && index != this.currentSlide){ //show
- $(this.buttons[index]).swapClass(this.options.buttonOffClass, this.options.buttonOnClass);
+ document.id(this.buttons[index]).swapClass(this.options.buttonOffClass, this.options.buttonOnClass);
action[index.toString()] = {
opacity: 1
};
} else {
- $(this.buttons[index]).swapClass(this.options.buttonOnClass, this.options.buttonOffClass);
+ document.id(this.buttons[index]).swapClass(this.options.buttonOnClass, this.options.buttonOffClass);
action[index.toString()] = {
opacity:0
};
View
22 Source/Layout/SimpleSlideShow.js
@@ -35,8 +35,8 @@ var SimpleSlideShow = new Class({
},
slides:[],
setCounters: function(){
- if ($(this.options.currentIndexContainer))$(this.options.currentIndexContainer).set('html', this.now+1);
- if ($(this.options.maxContainer))$(this.options.maxContainer).set('html', this.slides.length);
+ if (document.id(this.options.currentIndexContainer))document.id(this.options.currentIndexContainer).set('html', this.now+1);
+ if (document.id(this.options.maxContainer))document.id(this.options.maxContainer).set('html', this.slides.length);
},
makeSlides: function(slides){
//hide them all
@@ -51,22 +51,22 @@ var SimpleSlideShow = new Class({
this.slides.include(slide);
},
setUpNav: function(){
- if ($(this.options.nextLink)) {
- $(this.options.nextLink).addEvent('click', function(){
+ if (document.id(this.options.nextLink)) {
+ document.id(this.options.nextLink).addEvent('click', function(){
this.forward();
}.bind(this));
}
- if ($(this.options.prevLink)) {
- $(this.options.prevLink).addEvent('click', function(){
+ if (document.id(this.options.prevLink)) {
+ document.id(this.options.prevLink).addEvent('click', function(){
this.back();
}.bind(this));
}
},
disableLinks: function(now){
if (this.options.wrap) return;
now = $pick(now, this.now);
- var prev = $(this.options.prevLink);
- var next = $(this.options.nextLink);
+ var prev = document.id(this.options.prevLink);
+ var next = document.id(this.options.nextLink);
var dlc = this.options.disabledLinkClass;
if (now > 0) {
if (prev) prev.removeClass(dlc);
@@ -145,7 +145,7 @@ SimpleSlideShow.Carousel = new Class({
},
initialize: function(container, options){
this.setOptions(options);
- this.container = $(container);
+ this.container = document.id(container);
this.element = new Element('div').wraps(this.container).setStyles({
width: this.container.getSize().x,
overflow: 'hidden',
@@ -168,7 +168,7 @@ SimpleSlideShow.Carousel = new Class({
var s = new Element('div', {
styles: {
'float': 'left',
- width: $(this).getSize().x
+ width: document.id(this).getSize().x
}
}).wraps(slide);
this.parent(s);
@@ -214,7 +214,7 @@ var SimpleImageSlideShow;
},
initialize: function(){
var args = Array.link(arguments, {options: Object.type, container: $defined});
- this.container = $(args.container) || (args.options?$(args.options.container):false); //legacy
+ this.container = document.id(args.container) || (args.options?document.id(args.options.container):false); //legacy
if (passContainer) this.parent(this.container, args.options);
else this.parent(args.options);
this.options.imgUrls.each(function(url){
View
8 Source/Layout/TabSwapper.js
@@ -39,16 +39,16 @@ var TabSwapper = new Class({
},
setup: function(){
var opt = this.options;
- sections = $$(opt.sections);
- tabs = $$(opt.tabs);
+ sections = document.id(opt.sections);
+ tabs = document.id(opt.tabs);
if (tabs[0] && tabs[0].retrieve('tabSwapper')) return tabs[0].retrieve('tabSwapper');
- clickers = $$(opt.clickers);
+ clickers = document.id(opt.clickers);
tabs.each(function(tab, index){
this.addTab(tab, sections[index], clickers[index], index);
}, this);
},
addTab: function(tab, section, clicker, index){
- tab = $(tab); clicker = $(clicker); section = $(section);
+ tab = document.id(tab); clicker = document.id(clicker); section = document.id(section);
//if the tab is already in the interface, just move it
if (this.tabs.indexOf(tab) >= 0 && tab.retrieve('tabbered')
&& this.tabs.indexOf(tab) != index && this.options.rearrangeDOM) {
View
16 Source/UI/IconMenu.js
@@ -56,7 +56,7 @@ var IconMenu = new Class({
//set the options
this.setOptions(options);
//save a reference to the container
- this.container = $(this.options.container);
+ this.container = document.id(this.options.container);
//get the captions from the options
var captions = ($type(this.options.captions) == "string")
?this.container.getElements(this.options.captions)
@@ -132,7 +132,7 @@ var IconMenu = new Class({
//if we've already got this image in there, remove it before putting it in the right place
if (this.imgs.contains(img)) this.removeItems([img], true);
//insert the image and caption into the array of these things
- this.imgs.splice(where, 0, $(img));
+ this.imgs.splice(where, 0, document.id(img));
//set up the events for the element
this.setupIconEvents(img, caption);
@@ -301,7 +301,7 @@ var IconMenu = new Class({
if ($type(this.options.length) == "number") return this.options.length;
//if, on the other hand, they specified another element than the container
//to calculate the width, use it
- var container = $(this.options.length);
+ var container = document.id(this.options.length);
//otherwise, use the container
if (!container) container = this.container.getParent();
//return the width or height of that element, depending on the axis chosen in the options
@@ -382,32 +382,32 @@ var IconMenu = new Class({
return index < range.end && index >= range.start;
},
setupEvents: function(){
- $(this.options.container).addEvents({
+ document.id(this.options.container).addEvents({
"mouseleave": function() {
if (this.inFocus) this.inFocus = null;
this.imgOut(null, true);
}.bind(this)
});
- $$(this.options.backScrollButtons).each(function(el){
+ document.id(this.options.backScrollButtons).each(function(el){
el.addEvents({
click: this.pageBack.bind(this),
mouseover: function(){ this.addClass('hover'); },
mouseout: function(){ this.removeClass('hover'); }
});
}, this);
- $$(this.options.forwardScrollButtons).each(function(el){
+ document.id(this.options.forwardScrollButtons).each(function(el){
el.addEvents({
click: this.pageForward.bind(this),
mouseover: function(){ this.addClass('hover'); },
mouseout: function(){ this.removeClass('hover'); }
});
}, this);
- $$(this.options.clearLinks).each(function(el){
+ document.id(this.options.clearLinks).each(function(el){
el.addEvent('click', this.empty.bind(this));
}, this);
- $$(this.options.removeLinks).each(function(el){
+ document.id(this.options.removeLinks).each(function(el){
el.addEvent('click', this.removeSelected.bind(this));
}, this);
},
View
4 Source/UI/Modalizer.js
@@ -31,7 +31,7 @@ var Modalizer = new Class({
},
layer: function(){
if (!this.modalOptions.layerId) this.setModalOptions();
- return $(this.modalOptions.layerId) || new Element('div', {id: this.modalOptions.layerId}).inject(document.body);
+ return document.id(this.modalOptions.layerId) || new Element('div', {id: this.modalOptions.layerId}).inject(document.body);
},
resize: function(){
if (this.layer()) {
@@ -81,7 +81,7 @@ var Modalizer = new Class({
},
togglePopThroughElements: function(opacity){
if (Browser.Engine.trident4 || (Browser.Engine.gecko && Browser.Platform.mac)) {
- $$(this.modalOptions.elementsToHide).each(function(sel){
+ document.id(this.modalOptions.elementsToHide).each(function(sel){
sel.setStyle('opacity', opacity);
});
}
View
2 Source/UI/ObjectBrowser.js
@@ -20,7 +20,7 @@ var ObjectBrowser = new Class({
includeKeys: []
},
initialize: function(container, options){
- this.container = $(container);
+ this.container = document.id(container);
this.setOptions(options);
this.data = $H(this.options.data);
this.levels = {};
View
8 Source/UI/PopupDetails.js
@@ -34,8 +34,8 @@ var PopupDetail = new Class({
},
initialize: function(html, observer, options){
this.setOptions(options);
- this.observer = $(observer);
- this.html = ($(html))?$(html).get('html'):html||'';
+ this.observer = document.id(observer);
+ this.html = (document.id(html))?document.id(html).get('html'):html||'';
if (this.options.showNow) this.show.delay(this.options.delayOn, this);
this.setUpObservers();
},
@@ -67,7 +67,7 @@ var PopupDetail = new Class({
content: this.content,
allowMultipleByClass: true
}));
- if ($(opt.linkPopup) || $type(opt.linkPopup)=='string') {
+ if (document.id(opt.linkPopup) || $type(opt.linkPopup)=='string') {
this.stickyWin.win.setStyle('cursor','pointer').addEvent('click', function(){
window.location.href = ($type(url)=='string')?url:url.src;
});
@@ -141,7 +141,7 @@ var PopupDetailCollection = new Class({
},
cache: {},
initialize: function(observers, options) {
- this.observers = $$(observers);
+ this.observers = document.id(observers);
this.setOptions(options);
var ln = this.options.ajaxLinks.length;
if (ln <= 0) ln = this.options.details.length;
View
2 Source/UI/StickyWin.PointyTip.js
@@ -32,7 +32,7 @@ StickyWin.PointyTip = new Class({
this.options.content = null;
this.setOptions(args.options, this.getPositionSettings());
this.parent(this.options);
- this.win.empty().adopt($(this.pointy));
+ this.win.empty().adopt(document.id(this.pointy));
this.attachHandlers(this.win);
if (this.options.showNow) this.position();
},
View
22 Source/UI/StickyWin.UI.Pointy.js
@@ -72,15 +72,15 @@ StickyWin.UI.Pointy = new Class({
}
this.parent(args.caption, args.body, this.options);
- if (this.id) $(this).set('id', "pointy_"+this.id);
+ if (this.id) document.id(this).set('id', "pointy_"+this.id);
},
build: function(){
this.parent();
var opt = this.options;
this.pointyWrapper = new Element('div', {
'class': 'pointyWrapper'
- }).inject($(this));
- $(this).getChildren().each(function(el){
+ }).inject(document.id(this));
+ document.id(this).getChildren().each(function(el){
if (el != this.pointyWrapper) this.pointyWrapper.grab(el);
}, this);
@@ -119,19 +119,19 @@ StickyWin.UI.Pointy = new Class({
}).inject(this.pointyWrapper);
},
expose: function(){
- if ($(this).getStyle('display') != 'none' && $(document.body).hasChild($(this))) return $empty;
- $(this).setStyles({
+ if (document.id(this).getStyle('display') != 'none' && document.id(document.body).hasChild(document.id(this))) return $empty;
+ document.id(this).setStyles({
visibility: 'hidden',
position: 'absolute'
});
var dispose;
- if (!document.body.hasChild($(this))) {
- $(this).inject(document.body);
+ if (!document.body.hasChild(document.id(this))) {
+ document.id(this).inject(document.body);
dispose = true;
}
return (function(){
- if (dispose) $(this).dispose();
- $(this).setStyles({
+ if (dispose) document.id(this).dispose();
+ document.id(this).setStyles({
visibility: 'visible',
position: 'relative'
});
@@ -205,7 +205,7 @@ StickyWin.UI.Pointy = new Class({
setContent: function(a1, a2){
this.parent(a1, a2);
this.top[this.h1?'removeClass':'addClass']('noCaption');
- if (Browser.Engine.trident4) $(this).getElements('.bottom_ll, .bottom_lr').setStyle('font-size', 1); //IE6 bullshit
+ if (Browser.Engine.trident4) document.id(this).getElements('.bottom_ll, .bottom_lr').setStyle('font-size', 1); //IE6 bullshit
if (this.options.closeButton) this.body.setStyle('margin-right', 6);
this.positionPointer();
return this;
@@ -217,6 +217,6 @@ StickyWin.UI.Pointy = new Class({
});
StickyWin.UI.pointy = function(caption, body, options){
- return $(new StickyWin.UI.Pointy(caption, body, options));
+ return document.id(new StickyWin.UI.Pointy(caption, body, options));
};
StickyWin.ui.pointy = StickyWin.UI.pointy;
View
6 Source/UI/StickyWin.UI.js
@@ -113,7 +113,7 @@ StickyWin.UI = new Class({
var opt = this.options;
var h1Caption = new Element('h1').addClass('caption');
if (opt.width) h1Caption.setStyle('width', (opt.width-(opt.cornerHandle?55:40)-(opt.closeButton?10:0)));
- if ($(this.caption)) h1Caption.adopt(this.caption);
+ if (document.id(this.caption)) h1Caption.adopt(this.caption);
else h1Caption.set('html', this.caption);
this.top_ur.adopt(h1Caption);
this.h1 = h1Caption;
@@ -133,7 +133,7 @@ StickyWin.UI = new Class({
var body = args.body;
if (this.h1) this.destroyCaption();
this.makeCaption(caption);
- if ($(body)) this.body.empty().adopt(body);
+ if (document.id(body)) this.body.empty().adopt(body);
else this.body.set('html', body);
return this;
}
@@ -152,5 +152,5 @@ StickyWin.UI.getArgs = function(){
};
StickyWin.ui = function(caption, body, options){
- return $(new StickyWin.UI(caption, body, options))
+ return document.id(new StickyWin.UI(caption, body, options))
};
View
10 Source/UI/StickyWin.js
@@ -76,15 +76,15 @@ var StickyWin = new Class({
},
makeWindow: function(){
this.destroyOthers();
- if (!$(this.id)) {
+ if (!document.id(this.id)) {
this.win = new Element('div', {
id: this.id
}).addClass(this.options.className).addClass('StickyWinInstance').addClass('SWclearfix').setStyles({
display:'none',
position:'absolute',
zIndex:this.options.zIndex
}).inject(this.options.inject.target, this.options.inject.where).store('StickyWin', this);
- } else this.win = $(this.id);
+ } else this.win = document.id(this.id);
this.element = this.win;
if (this.options.width && $type(this.options.width.toInt())=="number") this.win.setStyle('width', this.options.width.toInt());
if (this.options.height && $type(this.options.height.toInt())=="number") this.win.setStyle('height', this.options.height.toInt());
@@ -113,7 +113,7 @@ var StickyWin = new Class({
},
destroyOthers: function() {
if (!this.options.allowMultipleByClass || !this.options.allowMultiple) {
- $$('div.StickyWinInstance').each(function(sw) {
+ document.id('div.StickyWinInstance').each(function(sw) {
if (!this.options.allowMultiple || (!this.options.allowMultipleByClass && sw.hasClass(this.options.className)))
sw.retrieve('StickyWin').destroy();
}, this);
@@ -122,7 +122,7 @@ var StickyWin = new Class({
setContent: function(html) {
if (this.win.getChildren().length>0) this.win.empty();
if ($type(html) == "string") this.win.set('html', html);
- else if ($(html)) this.win.adopt(html);
+ else if (document.id(html)) this.win.adopt(html);
this.win.getElements('.'+this.options.closeClassName).each(function(el){
el.addEvent('click', this.hide);
}, this);
@@ -180,7 +180,7 @@ var StickyWin = new Class({
destroy: function(){
if (this.win) this.win.destroy();
if (this.options.useIframeShim && this.shim) this.shim.destroy();
- if ($('modalOverlay')) $('modalOverlay').destroy();
+ if (document.id('modalOverlay')) document.id('modalOverlay').destroy();
this.fireEvent('destroy');
}
});
View
4 Source/UI/StyleWriter.js
@@ -11,8 +11,8 @@ var StyleWriter = new Class({
createStyle: function(css, id) {
window.addEvent('domready', function(){
try {
- if ($(id) && id) return;
- var style = new Element('style', {id: id||''}).inject($$('head')[0]);
+ if (document.id(id) && id) return;
+ var style = new Element('style', {id: id||''}).inject(document.id('head')[0]);
if (Browser.Engine.trident) style.styleSheet.cssText = css;
else style.set('text', css);
}catch(e){dbug.log('error: %s',e);}
View
6 Source/UI/Tips.Pointy.js
@@ -29,7 +29,7 @@ Tips.Pointy = new Class({
this.tip = new StickyWin.PointyTip($extend(this.options.pointyTipOptions, {
showNow: false
}));
- if (this.options.className) $(this.tip).addClass(this.options.className);
+ if (this.options.className) document.id(this.tip).addClass(this.options.className);
if (params.elements) this.attach(params.elements);
},
elementEnter: function(event, element){
@@ -61,11 +61,11 @@ Tips.Pointy = new Class({
},
show: function(){
- this.fireEvent('show', [$(this.tip), this.tip]);
+ this.fireEvent('show', [document.id(this.tip), this.tip]);
},
hide: function(){
- this.fireEvent('hide', [$(this.tip), this.tip]);
+ this.fireEvent('hide', [document.id(this.tip), this.tip]);
}
});
View
20 Source/UI/Waiter.js
@@ -55,7 +55,7 @@ var Waiter = new Class({
},
property: 'Waiter',
initialize: function(target, options){
- this.element = $(target)||$(document.body);
+ this.element = document.id(target)||document.id(document.body);
if (this.occlude()) return this.occluded;
this.setOptions(options);
this.build();
@@ -66,32 +66,32 @@ var Waiter = new Class({
if (this.options.msg) {
this.msgContainer = new Element('div', this.options.msgProps);
this.waiterContainer.adopt(this.msgContainer);
- if (!$(this.options.msg)) this.msg = new Element('p').appendText(this.options.msg);
- else this.msg = $(this.options.msg);
+ if (!document.id(this.options.msg)) this.msg = new Element('p').appendText(this.options.msg);
+ else this.msg = document.id(this.options.msg);
this.msgContainer.adopt(this.msg);
}
- if (this.options.img) this.waiterImg = $(this.options.img.id) || new Element('img', $merge(this.options.img, {
+ if (this.options.img) this.waiterImg = document.id(this.options.img.id) || new Element('img', $merge(this.options.img, {
src: this.options.baseHref + this.options.img.src
})).inject(this.waiterContainer);
- this.waiterOverlay = $(this.options.layer.id) || new Element('div').adopt(this.waiterContainer);
+ this.waiterOverlay = document.id(this.options.layer.id) || new Element('div').adopt(this.waiterContainer);
this.waiterOverlay.set(this.options.layer);
try {
if (this.options.useIframeShim) this.shim = new IframeShim(this.waiterOverlay, this.options.iframeShimOptions);
} catch(e) {
dbug.log("Waiter attempting to use IframeShim but failed; did you include IframeShim? Error: ", e);
this.options.useIframeShim = false;
}
- this.waiterFx = this.waiterFx || new Fx.Elements($$(this.waiterContainer, this.waiterOverlay), this.options.fxOptions);
+ this.waiterFx = this.waiterFx || new Fx.Elements(document.id(this.waiterContainer, this.waiterOverlay), this.options.fxOptions);
},
place: function(target, where){
var where = where || this.options.injectWhere || target == document.body ? 'inside' : 'after';
this.waiterOverlay.inject(target, where);
},
toggle: function(element, show) {
//the element or the default
- element = $(element) || $(this.active) || $(this.element);
+ element = document.id(element) || document.id(this.active) || document.id(this.element);
this.place(element);
- if (!$(element)) return this;
+ if (!document.id(element)) return this;
if (this.active && element != this.active) return this.stop(this.start.bind(this, element));
//if it's not active or show is explicit
//or show is not explicitly set to false
@@ -110,7 +110,7 @@ var Waiter = new Class({
},
start: function(element){
this.reset();
- element = $(element) || $(this.element);
+ element = document.id(element) || document.id(this.element);
this.place(element);
var start = function() {
var dim = element.getComputedSize();
@@ -180,7 +180,7 @@ if (window.Request) {
return this;
};
this.previous(options);
- if (this.options.useWaiter && ($(this.options.update) || $(this.options.waiterTarget))) {
+ if (this.options.useWaiter && (document.id(this.options.update) || document.id(this.options.waiterTarget))) {
this.waiter = new Waiter(this.options.waiterTarget || this.options.update, this.options.waiterOptions);
['onComplete', 'onException', 'onCancel'].each(function(event){
this.addEvent(event, this.waiter.stop.bind(this.waiter));
View
2 Source/Utilities/DollarG.js
@@ -1,4 +1,4 @@
//returns a collection given an id or a selector
$G = function(elements) {
- return $splat($(elements)||$$(elements));
+ return $splat(document.id(elements)||document.id(elements));
};
View
2 Source/scripts.json
@@ -12,7 +12,7 @@
"Class":{
"Class.ToElement": {
"deps":["Class", "Clientcide"],
- "desc":"Mixin class that returns *this.element*. Allows you to do $(myInstance)."
+ "desc":"Mixin class that returns *this.element*. Allows you to do document.id(myInstance)."
}
},
"Browser":{

0 comments on commit bbd3802

Please sign in to comment.