js-data-http icon indicating copy to clipboard operation
js-data-http copied to clipboard

Finish adding JSDoc comments to source code

Open jmdobry opened this issue 10 years ago • 3 comments

About 50% done so far

jmdobry avatar Jan 10 '16 23:01 jmdobry

now about 75% done

jmdobry avatar Jan 11 '16 00:01 jmdobry

I do not understand where to write...on this ask the last question here

const adapter = new DSHttpAdapter()

class Base extends JSData.Model {}
Base.registerAdapter('http', adapter, { default: true })

class School extends Model {}
class Student extends Model {}

// "School" and "Student" will now use the http adapter by default

https://github.com/js-data/js-data-http/tree/3.0.0-alpha.3 your code is correct? or must be so

class School extends Base {}
class Student extends Base {}

?

acopalipsis avatar Jan 12 '16 21:01 acopalipsis

you are right, good catch

jmdobry avatar Jan 12 '16 21:01 jmdobry