How is this code supposed to retrieve groups with a reference to the CSOM?

Oct 3, 2014 at 4:08 PM
I tried implementing this js in the site assets library and when I reference it in the content editor and test it the disable function works but the disableWithAllowance is not working. I noticed from the developer toolbar that it errors out on the variable defining spContext. How is the code supposed to work without a reference to the CSOM?

spContext = new SP.ClientContext.get_current();