Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #6134: effect_highlight_empty_restorecolor.diff

File effect_highlight_empty_restorecolor.diff, 0.7 kB (added by jcott33@hotmail.com, 2 years ago)

Diff against latest SVN

  • effects.js

    old new  
    505505    this.element.setStyle({backgroundImage: 'none'}); 
    506506    if(!this.options.endcolor) 
    507507      this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff'); 
    508     if(!this.options.restorecolor) 
     508    if(typeof(this.options.restorecolor) == 'undefined') // allow empty value 
    509509      this.options.restorecolor = this.element.getStyle('background-color'); 
    510510    // init color calculations 
    511511    this._base  = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this));