Clouda-team / Cloudajs

Clouda Framework - A Realtime Javascript RIA Framework For Mobile WebApp
899 stars 403 forks source link

some problem! #61

Closed lt1946 closed 11 years ago

lt1946 commented 11 years ago

log: getMessage1 [TypeError: Cannot read property 'modelname' of undefined] 'toLoadEror...'

view:
html can't show.

code in js: env.onload=function(){ return [getMessage]; }

var getMessage=function(){ console.log("getMessage1") session.siteMassages=env.subscribe("pub-site",function(collections){ console.log("getMessage2") session.bind("site-container",{data:collections.find()}); }); }

neokidd commented 11 years ago

Please check how Publish and Model are defined.