Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
Further global variable fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Craga89 committed Jul 11, 2013
1 parent e253a01 commit 2990ac2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/class.js
Expand Up @@ -192,7 +192,7 @@ PROTOTYPE.destroy = function(immediate) {

// If an immediate destory is needed
if(immediate !== TRUE && this.rendered) {
tooltip.one('tooltiphidden', $.proxy(process, this));
this.tooltip.one('tooltiphidden', $.proxy(process, this));
!this.triggering && this.hide();
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/options.js
Expand Up @@ -166,15 +166,15 @@ CHECKS = PROTOTYPE.checks = {

// Events check
'^events.(render|show|move|hide|focus|blur)$': function(obj, o, v) {
tooltip[($.isFunction(v) ? '' : 'un') + 'bind']('tooltip'+o, v);
this.tooltip[($.isFunction(v) ? '' : 'un') + 'bind']('tooltip'+o, v);
},

// Properties which require event reassignment
'^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)': function() {
var posOptions = this.options.position;

// Set tracking flag
tooltip.attr('tracking', posOptions.target === 'mouse' && posOptions.adjust.mouse);
this.tooltip.attr('tracking', posOptions.target === 'mouse' && posOptions.adjust.mouse);

// Reassign events
this._unassignEvents();
Expand Down
2 changes: 1 addition & 1 deletion src/position/imagemap.js
Expand Up @@ -6,7 +6,7 @@ PLUGINS.imagemap = function(api, area, corner, adjustMethod)
image = $('img[usemap="#'+area.parent('map').attr('name')+'"]'),
coordsString = area.attr('coords'),
coordsArray = coordsString.split(','),
imageOffset, coords, i, next;
imageOffset, coords, i, next, result, len;

// If we can't find the image using the map...
if(!image.length) { return FALSE; }
Expand Down
2 changes: 1 addition & 1 deletion src/tips/tips.js
Expand Up @@ -571,7 +571,7 @@ TIP.initialize = 'render';
// Setup plugin sanitization options
TIP.sanitize = function(options) {
if(options.style && 'tip' in options.style) {
opts = options.style.tip;
var opts = options.style.tip;
if(typeof opts !== 'object') { opts = options.style.tip = { corner: opts }; }
if(!(/string|boolean/i).test(typeof opts.corner)) { opts.corner = TRUE; }
}
Expand Down

0 comments on commit 2990ac2

Please sign in to comment.