Probably youre right. May I ask, how you would generally include an api into javascriptmvc and how you would seperate the logic? The problem is, that the FB-SDK functionality is used in very different contexts, but shares some common variables and some of them could only be intialized once. Inheriting from it or initialzing a new isntance it for every controller which uses it, seems not very practical for me.
↧