a:20:{s:9:"#provides";s:24:"dojox.data.CssClassStore";s:9:"#resource";s:21:"data/CssClassStore.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:23:"dojox.data.CssRuleStore";}}s:24:"dojox.data.CssClassStore";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:23:"dojox.data.CssRuleStore";}s:4:"call";a:1:{i:0;s:23:"dojox.data.CssRuleStore";}}s:7:"summary";s:39:"Basic store to display CSS information.";s:11:"description";s:309:"The CssClassStore allows users to get information about active Css classes in the page running the CssClassStore. It can also filter out classes from specific stylesheets. The attributes it exposes on classes are as follows: class: The classname, including the '.'. classSans: The classname without the '.'.";s:9:"classlike";b:1;}s:40:"dojox.data.CssClassStore._labelAttribute";a:3:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:7:"private";b:1;s:7:"summary";s:0:"";}s:37:"dojox.data.CssClassStore._idAttribute";a:3:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:7:"private";b:1;s:7:"summary";s:0:"";}s:31:"dojox.data.CssClassStore._cName";a:3:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:7:"private";b:1;s:7:"summary";s:0:"";}s:36:"dojox.data.CssClassStore.getFeatures";a:4:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:6:"source";s:84:" return { "dojo.data.api.Read" : true, "dojo.data.api.Identity" : true };";s:7:"summary";s:36:"See dojo.data.api.Read.getFeatures()";}s:38:"dojox.data.CssClassStore.getAttributes";a:5:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:60:" this._assertIsItem(item); return ['class', 'classSans'];";s:7:"summary";s:38:"See dojo.data.api.Read.getAttributes()";}s:33:"dojox.data.CssClassStore.getValue";a:5:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}s:12:"defaultValue";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:130:" var values = this.getValues(item, attribute); if(values && values.length > 0){ return values[0]; } return defaultValue;";s:7:"summary";s:33:"See dojo.data.api.Read.getValue()";}s:34:"dojox.data.CssClassStore.getValues";a:5:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:247:" this._assertIsItem(item); this._assertIsAttribute(attribute); var value = []; if(attribute === "class"){ value = [item.className]; }else if(attribute === "classSans"){ value = [item.className.replace(/\./g,'')]; } return value;";s:7:"summary";s:34:"See dojo.data.api.Read.getValues()";}s:36:"dojox.data.CssClassStore._handleRule";a:6:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"rule";a:1:{s:4:"type";s:0:"";}s:10:"styleSheet";a:1:{s:4:"type";s:0:"";}s:4:"href";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:524:" var obj = {}; var s = rule['selectorText'].split(" "); for(var j=0; j 0 && first !== -1){ var last = tmp.indexOf(',') || tmp.indexOf('['); tmp = tmp.substring(first, ((last !== -1 && last > first)?last:tmp.length)); obj[tmp] = true; } } for(var key in obj){ if(!this._allItems[key]){ var item = {}; item.className = key; item[this._storeRef] = this; this._allItems[key] = item; } }";s:7:"summary";s:125:"Handles the creation of an item based on the passed rule. In this store, this implies parsing out all available class names.";s:7:"private";b:1;}s:38:"dojox.data.CssClassStore._handleReturn";a:5:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:6:"source";s:604:" var _inProgress = []; var items = {}; for(var i in this._allItems){ items[i] = this._allItems[i]; } var requestInfo; // One-level deep clone (can't use dojo.clone, since we don't want to clone all those store refs!) while(this._pending.length){ requestInfo = this._pending.pop(); requestInfo.request._items = items; _inProgress.push(requestInfo); } while (_inProgress.length) { requestInfo = _inProgress.pop(); if(requestInfo.fetch){ this._handleFetchReturn(requestInfo.request); }else{ this._handleFetchByIdentityReturn(requestInfo.request); } }";s:7:"summary";s:203:"Handles the return from a fetching action. Delegates requests to act on the resulting item set to eitehr the _handleFetchReturn or _handleFetchByIdentityReturn depending on where the request originated.";s:7:"private";b:1;}s:53:"dojox.data.CssClassStore._handleFetchByIdentityReturn";a:7:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"request";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:403:" var items = request._items; // Per https://bugs.webkit.org/show_bug.cgi?id=17935 , Safari 3.x always returns the selectorText // of a rule in full lowercase. var item = items[(dojo.isWebKit?request.identity.toLowerCase():request.identity)]; if(!this.isItem(item)){ item = null; } if(request.onItem){ var scope = request.scope || dojo.global; request.onItem.call(scope, item); }";s:7:"summary";s:62:"Handles a fetchByIdentity request by finding the correct item.";s:6:"chains";a:1:{s:4:"call";a:1:{i:0;s:14:"request.onItem";}}s:7:"private";b:1;}s:36:"dojox.data.CssClassStore.getIdentity";a:5:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:4:"item";}}s:6:"source";s:76:" this._assertIsItem(item); return this.getValue(item, this._idAttribute);";s:7:"summary";s:40:"See dojo.data.api.Identity.getIdentity()";}s:46:"dojox.data.CssClassStore.getIdentityAttributes";a:5:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:4:"item";}}s:6:"source";s:57:" this._assertIsItem(item); return [this._idAttribute];";s:7:"summary";s:50:"See dojo.data.api.Identity.getIdentityAttributes()";}s:44:"dojox.data.CssClassStore.fetchItemByIdentity";a:5:{s:9:"prototype";s:24:"dojox.data.CssClassStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"request";a:1:{s:4:"type";s:7:"request";}}s:6:"source";s:267:" request = request || {}; if(!request.store){ request.store = this; } if(this._pending && this._pending.length > 0){ this._pending.push({request: request}); }else{ this._pending = [{request: request}]; this._fetch(request); } return request;";s:7:"summary";s:48:"See dojo.data.api.Identity.fetchItemByIdentity()";}s:33:"dojox.data.CssClassStore._pending";a:3:{s:8:"instance";s:24:"dojox.data.CssClassStore";s:7:"private";b:1;s:7:"summary";s:0:"";}s:10:"dojox.data";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}