function View(model) {
    var wrapper;

    this.el = wrapper = document.createElement('div');
    this.model = model;
    this.isShowing = false;

    // HTML
    wrapper.id = config.name;
    config.parent.appendChild(wrapper);

    // CSS
    css.inject(document.getElementsByTagName('head')[0], config.styles);

    // JavaScript
    events.add(document, ('ontouchstart' in window) ? 'touchstart' : 'click', viewevents.click, this);
    events.add(document, 'keyup', viewevents.keyup, this);
    events.add(document, 'readystatechange', viewevents.readystatechange, this);
    events.add(window, 'pageshow', viewevents.pageshow, this);
}
function View(model) {
    var wrapper;

    this.el = wrapper = document.createElement('div');
    this.model = model;
    this.isShowing = false;

    
    wrapper.id = config.name;
    config.parent.appendChild(wrapper);

    
    css.inject(document.getElementsByTagName('head')[0], config.styles);

    
    events.add(document, ('ontouchstart' in window) ? 'touchstart' : 'click', viewevents.click, this);
    events.add(document, 'keyup', viewevents.keyup, this);
    events.add(document, 'readystatechange', viewevents.readystatechange, this);
    events.add(window, 'pageshow', viewevents.pageshow, this);
}
function View ( model ) { var wrapper ; this . el = wrapper = document . createElement ( 'div' ) ; this . model = model ; this . isShowing = false ; // HTML wrapper . id = config . name ; config . parent . appendChild ( wrapper ) ; // CSS css . inject ( document . getElementsByTagName ( 'head' ) [ 0 ] , config . styles ) ; // JavaScript events . add ( document , ( 'ontouchstart' in window ) ? 'touchstart' : 'click' , viewevents . click , this ) ; events . add ( document , 'keyup' , viewevents . keyup , this ) ; events . add ( document , 'readystatechange' , viewevents . readystatechange , this ) ; events . add ( window , 'pageshow' , viewevents . pageshow , this ) ; }
Creates a view model.

@constructor
@param {object} model
Creates a view model .