Skip to content
Browse files

Fix line endings

  • Loading branch information...
1 parent 91fe6a2 commit efe7bc7dc8a94743940f36c4474f0603b7c4df5a @nikhilk committed Aug 26, 2012
Showing with 77 additions and 77 deletions.
  1. +77 −77 src/Libraries/Knockout/Observable.cs
View
154 src/Libraries/Knockout/Observable.cs
@@ -1,77 +1,77 @@
-// Observable.cs
-// Script#/Libraries/Knockout
-// This source code is subject to terms and conditions of the Apache License, Version 2.0.
-//
-
-using System;
-using System.Runtime.CompilerServices;
-using System.Collections;
-
-namespace KnockoutApi {
-
- /// <summary>
- /// Represents an object containing an observable value.
- /// </summary>
- /// <typeparam name="T">The type of the contained value.</typeparam>
- [Imported]
- [IgnoreNamespace]
- public class Observable<T> : Subscribable<T> {
-
- internal Observable() {
- }
-
- /// <summary>
- /// Gets the current value within the observable object.
- /// </summary>
- /// <returns>The current value.</returns>
- [ScriptName("")]
- public T GetValue() {
- return default(T);
- }
-
- /// <summary>
- /// Sets the value within the observable object.
- /// </summary>
- /// <param name="value">The new value.</param>
- [ScriptName("")]
- public void SetValue(T value) {
- }
-
- /// <summary>
- /// Notifies All Subscribers that the Value has Changed
- /// Called internally with SetValue
- /// </summary>
- public void ValueHasMutated() {
- }
-
- /// <summary>
- /// Notifies All Subscribers BEFORE the Value has Changed
- /// Called internally with SetValue
- /// </summary>
- public void ValueWillMutate() {
- }
-
- /// <summary>
- /// For Primitive Types ko will handle Equality internally
- /// For complex types a supplied function can be assigned to improve
- /// change (mutation) detection
- /// </summary>
- [IntrinsicProperty]
- public Func<T, T, bool> EqualityComparer {
- get;
- set;
- }
-
- /// <summary>
- /// For dependent observables, we throttle *evaluations* so that, no matter how fast its dependencies
- /// notify updates, the target doesn't re-evaluate (and hence doesn't notify) faster than a certain rate
- /// For writable targets (observables, or writable dependent observables), we throttle *writes*
- /// so the target cannot change value synchronously or faster than a certain rate
- /// </summary>
- /// <param name="options"></param>
- /// <returns>Returns 'this' inorder to support chaining methods</returns>
- public new Observable<T> Extend(Dictionary options) {
- return null;
- }
- }
-}
+// Observable.cs
+// Script#/Libraries/Knockout
+// This source code is subject to terms and conditions of the Apache License, Version 2.0.
+//
+
+using System;
+using System.Runtime.CompilerServices;
+using System.Collections;
+
+namespace KnockoutApi {
+
+ /// <summary>
+ /// Represents an object containing an observable value.
+ /// </summary>
+ /// <typeparam name="T">The type of the contained value.</typeparam>
+ [Imported]
+ [IgnoreNamespace]
+ public class Observable<T> : Subscribable<T> {
+
+ internal Observable() {
+ }
+
+ /// <summary>
+ /// Gets the current value within the observable object.
+ /// </summary>
+ /// <returns>The current value.</returns>
+ [ScriptName("")]
+ public T GetValue() {
+ return default(T);
+ }
+
+ /// <summary>
+ /// Sets the value within the observable object.
+ /// </summary>
+ /// <param name="value">The new value.</param>
+ [ScriptName("")]
+ public void SetValue(T value) {
+ }
+
+ /// <summary>
+ /// Notifies All Subscribers that the Value has Changed
+ /// Called internally with SetValue
+ /// </summary>
+ public void ValueHasMutated() {
+ }
+
+ /// <summary>
+ /// Notifies All Subscribers BEFORE the Value has Changed
+ /// Called internally with SetValue
+ /// </summary>
+ public void ValueWillMutate() {
+ }
+
+ /// <summary>
+ /// For Primitive Types ko will handle Equality internally
+ /// For complex types a supplied function can be assigned to improve
+ /// change (mutation) detection
+ /// </summary>
+ [IntrinsicProperty]
+ public Func<T, T, bool> EqualityComparer {
+ get;
+ set;
+ }
+
+ /// <summary>
+ /// For dependent observables, we throttle *evaluations* so that, no matter how fast its dependencies
+ /// notify updates, the target doesn't re-evaluate (and hence doesn't notify) faster than a certain rate
+ /// For writable targets (observables, or writable dependent observables), we throttle *writes*
+ /// so the target cannot change value synchronously or faster than a certain rate
+ /// </summary>
+ /// <param name="options"></param>
+ /// <returns>Returns 'this' inorder to support chaining methods</returns>
+ public new Observable<T> Extend(Dictionary options) {
+ return null;
+ }
+ }
+}

0 comments on commit efe7bc7

Please sign in to comment.
Something went wrong with that request. Please try again.