Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkneen committed Apr 4, 2017
1 parent ea45e26 commit b50e376
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reste.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ var main = function() {

// if we have a config based transfor for th emodel
// then attach this to the model, or create a default
if (reste.modelConfig && reste.modelConfig[name].transform) {
if (reste.modelConfig && reste.modelConfig[name] && reste.modelConfig[name].transform) {
alert("here")
model.transform = function(model, transform) {
if (transform) {
this.__transform = transform(this);
Expand Down

0 comments on commit b50e376

Please sign in to comment.