# all files / Core/Components/ConfirmDialog/ ConfirmDialogController.js

77.78% Statements 7/9
100% Branches 0/0
25% Functions 1/4
77.78% Lines 7/9

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21

    1

    1
    1

    1

    1

    1

    1
     'use strict';

    // Module:
    var Core = require('../../Core');

    var ConfirmDialogController = (function () {
        var ConfirmDialogController = function ConfirmDialogController () { };

        ConfirmDialogController.prototype.ok = function () {
            this.trigger.resolve();
        };

        ConfirmDialogController.prototype.cancel = function () {
            this.trigger.reject();
        };

        return ConfirmDialogController;
    })();

    Core.controller('ConfirmDialogController', ConfirmDialogController);