Skip to content

Commit

Permalink
Remove the Invalidating#buildRendering() method since it sets up a re…
Browse files Browse the repository at this point in the history
…verse dependency

from decor --> delite.   Instead, expose initializeInvalidating() method for delite/Widget
to call.

Correspondingly, change decor version number to 0.3.0-alpha.

Refs ibms-js/delite#238, due to the name change from buildRendering() --> render().
  • Loading branch information
wkeese committed Sep 25, 2014
1 parent ebeed4b commit 971df8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions Invalidating.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,22 @@ define([
"./Destroyable"
], function (dcl, Stateful, Destroyable) {
/**
* Mixin class to for widgets
* Mixin class for widgets
* that want to calculate computed properties at once and/or to render UI at once upon multiple property changes.
* @class module:decor/Invalidating
*/
var Invalidating = dcl([Stateful, Destroyable], /** @lends module:decor/Invalidating# */ {
constructor: dcl.after(function () {
this._initializeInvalidating();
}),

buildRendering: dcl.after(function () {
this._initializeInvalidating();
this.initializeInvalidating();
}),

/**
* Sets up observers, one for computed properties, one for UI rendering.
* @private
* Normally this method is called automatically by the constructor, and should not be called manually,
* but the method is exposed for custom elements since they do not call the `constructor()` method.
* @protected
*/
_initializeInvalidating: function () {
initializeInvalidating: function () {
this.own(
this._hComputing = this.observe(function (oldValues) {
this.computeProperties(oldValues);
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "decor",
"version": "0.2.2",
"version": "0.3.0-alpha",
"dependencies": {
"requirejs": "2.1.x",
"requirejs-dplugins": "0.3.x",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "decor",
"version": "0.2.2",
"version": "0.3.0-alpha",
"dependencies": {
},
"devDependencies": {
Expand Down

0 comments on commit 971df8c

Please sign in to comment.