@@ -14,7 +14,7 @@ function ResolverObservable(resolver, context) {
1414 // we don't want reads leaking out. We should be binding to all of this ourselves.
1515 this . resolver = ObservationRecorder . ignore ( resolver ) ;
1616 this . context = context ;
17- this . valueOptions = {
17+ this . _valueOptions = {
1818 resolve : this . resolve . bind ( this ) ,
1919 listenTo : this . listenTo . bind ( this ) ,
2020 stopListening : this . stopListening . bind ( this ) ,
@@ -43,7 +43,7 @@ function ResolverObservable(resolver, context) {
4343 value : canReflect . getName ( this ) + ".update"
4444 } ) ;
4545
46- canReflect . assignSymbols ( this . valueOptions . lastSet , {
46+ canReflect . assignSymbols ( this . _valueOptions . lastSet , {
4747 "can.getName" : function ( ) {
4848 return (
4949 canReflect . getName ( this . constructor ) + "::lastSet" +
@@ -118,16 +118,16 @@ canReflect.assignMap(ResolverObservable.prototype, {
118118 return this ;
119119 } ,
120120 resolve : function ( newVal ) {
121- this . value = newVal ;
121+ this . _value = newVal ;
122122 // if we are setting up the initial binding and we get a resolved value
123123 // do not emit events for it.
124124
125125 if ( this . isBinding ) {
126- this . lastValue = this . value ;
126+ this . lastValue = this . _value ;
127127 return newVal ;
128128 }
129129
130- if ( this . value !== this . lastValue ) {
130+ if ( this . _value !== this . lastValue ) {
131131 var enqueueMeta = { } ;
132132
133133 //!steal-remove-start
@@ -140,7 +140,7 @@ canReflect.assignMap(ResolverObservable.prototype, {
140140 /* jshint laxcomma: false */
141141 }
142142 //!steal-remove-end
143-
143+
144144 queues . batch . start ( ) ;
145145 queues . deriveQueue . enqueue (
146146 this . update ,
@@ -154,14 +154,14 @@ canReflect.assignMap(ResolverObservable.prototype, {
154154 } ,
155155 update : function ( ) {
156156
157- if ( this . lastValue !== this . value ) {
157+ if ( this . lastValue !== this . _value ) {
158158
159159 var old = this . lastValue ;
160- this . lastValue = this . value ;
160+ this . lastValue = this . _value ;
161161 //!steal-remove-start
162162 if ( process . env . NODE_ENV !== 'production' ) {
163163 if ( typeof this . _log === "function" ) {
164- this . _log ( old , this . value ) ;
164+ this . _log ( old , this . _value ) ;
165165 }
166166 }
167167 //!steal-remove-end
@@ -170,13 +170,13 @@ canReflect.assignMap(ResolverObservable.prototype, {
170170 queues . enqueueByQueue (
171171 this . handlers . getNode ( [ ] ) ,
172172 this ,
173- [ this . value , old ]
173+ [ this . _value , old ]
174174 ) ;
175175 }
176176 } ,
177177 activate : function ( ) {
178178 this . isBinding = true ;
179- this . teardown = this . resolver . call ( this . context , this . valueOptions ) ;
179+ this . teardown = this . resolver . call ( this . context , this . _valueOptions ) ;
180180 this . isBinding = false ;
181181 } ,
182182 onUnbound : function ( ) {
@@ -188,7 +188,7 @@ canReflect.assignMap(ResolverObservable.prototype, {
188188 }
189189 } ,
190190 set : function ( value ) {
191- this . valueOptions . lastSet . set ( value ) ;
191+ this . _valueOptions . lastSet . set ( value ) ;
192192
193193 /*if (newVal !== this.lastSetValue.get()) {
194194 this.lastSetValue.set(newVal);
@@ -203,11 +203,11 @@ canReflect.assignMap(ResolverObservable.prototype, {
203203 }
204204
205205 if ( this . bound === true ) {
206- return this . value ;
206+ return this . _value ;
207207 } else {
208208 var handler = function ( ) { } ;
209209 this . on ( handler ) ;
210- var val = this . value ;
210+ var val = this . _value ;
211211 this . off ( handler ) ;
212212 return val ;
213213 }
0 commit comments