Changeset 13510

Show
Ignore:
Timestamp:
04/30/08 09:40:58 (7 months ago)
Author:
dylan
Message:

refs #6653, fix a global reference bug in dojox.data.SnapLogicStore?, \!strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/data/SnapLogicStore.js

    r13030 r13510  
    6464                this._assertIsItem(item); 
    6565                this._assertIsAttribute(attribute); 
    66                 i = dojo.indexOf(item.attributes, attribute); 
     66                var i = dojo.indexOf(item.attributes, attribute); 
    6767                if(i !== -1){ 
    6868                        return item.values[i]; 
     
    125125                this._assertIsItem(item); 
    126126                this._assertIsAttribute(attribute); 
    127                 i = dojo.indexOf(item.attributes, attribute); 
     127                var i = dojo.indexOf(item.attributes, attribute); 
    128128                if(i !== -1){ 
    129129                        return [item.values[i]];        // Array 
     
    163163                 
    164164                if(request.onItem || request.onComplete){ 
    165                         response = request._dataResponse; 
     165                        var response = request._dataResponse; 
    166166 
    167167                        if (!response.length){ 
     
    173173                                //If this was not a record count request, the first element returned will contain 
    174174                                //the field names. 
    175                                 field_names = response.shift(); 
     175                                var field_names = response.shift(); 
    176176                                 
    177177                                var items = [];