NodeList-style.js 863 B

12345678
  1. /*
  2. Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dojox.fx.ext-dojo.NodeList-style"]){dojo._hasResource["dojox.fx.ext-dojo.NodeList-style"]=true;dojo.provide("dojox.fx.ext-dojo.NodeList-style");dojo.experimental("dojox.fx.ext-dojo.NodeList-style");dojo.require("dojo.NodeList-fx");dojo.require("dojox.fx.style");dojo.extend(dojo.NodeList,{addClassFx:function(_1,_2){return dojo.fx.combine(this.map(function(n){return dojox.fx.addClass(n,_1,_2);}));},removeClassFx:function(_3,_4){return dojo.fx.combine(this.map(function(n){return dojox.fx.removeClass(n,_3,_4);}));},toggleClassFx:function(_5,_6,_7){return dojo.fx.combine(this.map(function(n){return dojox.fx.toggleClass(n,_5,_6,_7);}));}});}