Skip to content

Commit

Permalink
Add Tapx.extendInitializer() to simplify adding new functions to Tape…
Browse files Browse the repository at this point in the history
…stry.Initializer
  • Loading branch information
hlship committed Mar 16, 2011
1 parent 6c56520 commit 42b186a
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -19,6 +19,10 @@ Tapx = {
Object.extend(destination, source);
},

extendInitializer : function(source) {
this.extend(Tapestry.Initializer, source);
},

/**
* Tapx.Tree contains configurable constants for controlling how animations
* of the tapx/Tree component operate.
Expand Down Expand Up @@ -51,7 +55,7 @@ Tapx = {
}
};

Tapx.extend(Tapestry.Initializer, function() {
Tapx.extendInitializer(function() {

function updateHiddenField(field, state) {
field.value = state.values.toJSON();
Expand Down Expand Up @@ -137,7 +141,7 @@ Tapx.extend(Tapestry.Initializer, function() {
};
});

Tapx.extend(Tapestry.Initializer, function() {
Tapx.extendInitializer(function() {

var cfg = Tapx.Tree;

Expand Down

0 comments on commit 42b186a

Please sign in to comment.