Lines Matching refs:targets
11 this.targets = [];
25 this.targets = [];
61 this.targets = this.parseTargets();
71 targets = [];
89 targets = targetStr.split('|');
90 if(!this.checkTargets(targets)) {
93 return targets.length > 1 ? [$(targets[0]), $(targets[1])] : [$(targets[0])];
96 Toggle.prototype.checkTargets = function(targets) { argument
99 for(i; i < targets.length; i++) {
100 if(targets[i] && !$(targets[i]).length) {
101 Gumby.error('Cannot find '+this.constructor.name+' target: '+targets[i]);
128 if(!this.targets) {
132 } else if(this.targets.length == 1) {
133 this.$el.add(this.targets[0]).toggleClass(this.className);
137 } else if(this.targets.length > 1) {
138 if(this.targets[0].hasClass(this.className)) {
139 $target = this.targets[0];
147 this.targets[1].addClass(this.className);
149 $target = this.targets[0];
157 this.targets[1].removeClass(this.className);
175 if(!this.targets) {
179 } else if(this.targets.length == 1) {
180 $target = this.targets[0];
191 } else if(this.targets.length > 1) {
192 $target = this.targets[0];
200 this.targets[1].removeClass(this.className);