|
4 | 4 | isElementDescriptor, |
5 | 5 | setClassicDecorator, |
6 | 6 | hasListeners, |
7 | | - beginPropertyChanges, |
8 | | - notifyPropertyChange, |
9 | | - endPropertyChanges, |
10 | 7 | addObserver, |
11 | 8 | removeObserver, |
12 | 9 | get, |
@@ -43,65 +40,6 @@ type ObserverMethod<Target, Sender> = |
43 | 40 | @public |
44 | 41 | */ |
45 | 42 | class EmberObject extends CoreObject { |
46 | | - /** |
47 | | - Begins a grouping of property changes. |
48 | | -
|
49 | | - You can use this method to group property changes so that notifications |
50 | | - will not be sent until the changes are finished. If you plan to make a |
51 | | - large number of changes to an object at one time, you should call this |
52 | | - method at the beginning of the changes to begin deferring change |
53 | | - notifications. When you are done making changes, call |
54 | | - `endPropertyChanges()` to deliver the deferred change notifications and end |
55 | | - deferring. |
56 | | -
|
57 | | - @method beginPropertyChanges |
58 | | - @return {Observable} |
59 | | - @private |
60 | | - */ |
61 | | - beginPropertyChanges() { |
62 | | - beginPropertyChanges(); |
63 | | - return this; |
64 | | - } |
65 | | - |
66 | | - /** |
67 | | - Ends a grouping of property changes. |
68 | | -
|
69 | | - You can use this method to group property changes so that notifications |
70 | | - will not be sent until the changes are finished. If you plan to make a |
71 | | - large number of changes to an object at one time, you should call |
72 | | - `beginPropertyChanges()` at the beginning of the changes to defer change |
73 | | - notifications. When you are done making changes, call this method to |
74 | | - deliver the deferred change notifications and end deferring. |
75 | | -
|
76 | | - @method endPropertyChanges |
77 | | - @return {Observable} |
78 | | - @private |
79 | | - */ |
80 | | - endPropertyChanges() { |
81 | | - endPropertyChanges(); |
82 | | - return this; |
83 | | - } |
84 | | - /** |
85 | | - Convenience method to call `propertyWillChange` and `propertyDidChange` in |
86 | | - succession. |
87 | | -
|
88 | | - Notify the observer system that a property has just changed. |
89 | | -
|
90 | | - Sometimes you need to change a value directly or indirectly without |
91 | | - actually calling `get()` or `set()` on it. In this case, you can use this |
92 | | - method instead. Calling this method will notify all observers that the |
93 | | - property has potentially changed value. |
94 | | -
|
95 | | - @method notifyPropertyChange |
96 | | - @param {String} keyName The property key to be notified about. |
97 | | - @return {Observable} |
98 | | - @public |
99 | | - */ |
100 | | - notifyPropertyChange(keyName: string) { |
101 | | - notifyPropertyChange(this, keyName); |
102 | | - return this; |
103 | | - } |
104 | | - |
105 | 43 | /** |
106 | 44 | Adds an observer on a property. |
107 | 45 |
|
|
0 commit comments