@@ -116,7 +116,7 @@ export class AppViewModel extends observable.Observable {
116116 set search ( value : string ) {
117117 if ( this . _search !== value ) {
118118 this . _search = value ;
119- this . notify ( { object : this , eventName : observable . knownEvents . propertyChange , propertyName : "search" , value : value } ) ;
119+ this . notify ( { object : this , eventName : observable . Observable . propertyChangeEvent , propertyName : "search" , value : value } ) ;
120120
121121 this . filter ( ) ;
122122 }
@@ -128,7 +128,7 @@ export class AppViewModel extends observable.Observable {
128128 set selectedIndex ( value : number ) {
129129 if ( this . _selectedIndex !== value ) {
130130 this . _selectedIndex = value ;
131- this . notify ( { object : this , eventName : observable . knownEvents . propertyChange , propertyName : "selectedIndex" , value : value } ) ;
131+ this . notify ( { object : this , eventName : observable . Observable . propertyChangeEvent , propertyName : "selectedIndex" , value : value } ) ;
132132
133133 this . set ( "dayHeader" , conferenceDays [ value ] . title ) ;
134134
@@ -150,7 +150,7 @@ export class AppViewModel extends observable.Observable {
150150 this . _sessions = this . _sessions . filter ( i => { return i . favorite } ) ;
151151 }
152152
153- this . notify ( { object : this , eventName : observable . knownEvents . propertyChange , propertyName : "sessions" , value : this . _sessions } ) ;
153+ this . notify ( { object : this , eventName : observable . Observable . propertyChangeEvent , propertyName : "sessions" , value : this . _sessions } ) ;
154154 }
155155
156156 public onDataLoaded ( ) {
@@ -171,7 +171,7 @@ export class AppViewModel extends observable.Observable {
171171 this . selectedViewIndex = 2 ;
172172 }
173173
174- this . notify ( { object : this , eventName : observable . knownEvents . propertyChange , propertyName : "selectedViewIndex" , value : this . selectedViewIndex } ) ;
174+ this . notify ( { object : this , eventName : observable . Observable . propertyChangeEvent , propertyName : "selectedViewIndex" , value : this . selectedViewIndex } ) ;
175175 }
176176}
177177
@@ -242,7 +242,7 @@ export class SessionModel extends observable.Observable implements Session {
242242 set favorite ( value : boolean ) {
243243 if ( this . _favorite !== value ) {
244244 this . _favorite = value ;
245- this . notify ( { object : this , eventName : observable . knownEvents . propertyChange , propertyName : "favorite" , value : this . _favorite } ) ;
245+ this . notify ( { object : this , eventName : observable . Observable . propertyChangeEvent , propertyName : "favorite" , value : this . _favorite } ) ;
246246 }
247247 }
248248
0 commit comments