Merging Properties Into The Class Prototype

The merge method merges properties from the properties object into the target object. If a property name is contained in filterList, the property is ignored. Here is the merge method.

01: merge: function(target, properties) {
02: for ( var property in properties ) {
03: if ( !this.filterList.contains(property) ) { 04: target[property] = properties[property]; 05: }
06: } 07: }

Next we will demonstrate the framework in action.