Sha256: 7657817e88a81605d4acc0c0c41b2c2fa465e457756b248ba2adf2639c95513e

Contents?: true

Size: 1.59 KB

Versions: 39

Compression:

Stored size: 1.59 KB

Contents

// ==========================================================================
// Project:   SproutCore Costello - Property Observing Library
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

/**
  The SC.ObservableProtocol defines optional methods you can implement on your
  objects.  They will be used if defined but are not required for observing to
  work.
*/
SC.ObservableProtocol = {

  /**
    Generic property observer called whenever a property on the receiver
    changes.

    If you need to observe a large number of properties on your object, it
    is sometimes more efficient to implement this observer only and then to
    handle requests yourself.  Although this observer will be triggered
    more often than an observer registered on a specific property, it also
    does not need to be registered which can make it faster to setup your
    object instance.

    You will often implement this observer using a switch statement on the
    key parameter, taking appropriate action.

    @param observer {null} no longer used; usually null
    @param target {Object} the target of the change.  usually this
    @param key {String} the name of the property that changed
    @param value {Object} the new value of the property.
    @param revision {Number} a revision you can use to quickly detect changes.
    @returns {void}
  */
  propertyObserver: function(observer,target,key,value, revision) {

  }

};

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.6.0.1 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js