Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : What's the difference between can.Map.define value and Value??

$
0
0
prop: {
   Value: MyMap

}

is the same as 

prop :{
  value: {},
  Type: MyMap
}

so this mean that on init (actually before init) prop will be assigned new MyMap()
so in first case 

prop = new myMap()

and is second

prop = new MyMap(..define.prop.value here...)


Viewing all articles
Browse latest Browse all 3491

Trending Articles