nl_tokens: Creates a view model .
pl_tokens: 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 ( <mask> , ( '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 ) ; }