     func cancel() {
         self.hide()
         
-        if let cancelClosure = cancelClosure {
+        if let onCancel = onCancel {
             getResultsForConfig({ results in
                 cancelClosure(results: results)
             })

	// Useful for direct use of the request* methods
    
    /// Callback called when permissions status change.
    public var authChangeClosure: authClosureType? = nil
    /// Callback called when the user taps on the close button.
    public var cancelClosure: cancelClosureType?   = nil
    

                
                if areAuthorized {
                    self.getResultsForConfig({ results in
                        self.onAuthChange?(finished: true, results: results)
                    })
                } else {
                    dispatch_async(dispatch_get_main_queue()) {
