UNPKG

gpii-universal

Version:

Cross platform, core components of the GPII personalization infrastructure.

39 lines (32 loc) 1.24 kB
/* * GPII No Settings Settings Handler * * Copyright 2012 OCAD University * * Licensed under the New BSD license. You may not use this file except in * compliance with this License. * * The research leading to these results has received funding from the European Union's * Seventh Framework Programme (FP7/2007-2013) * under grant agreement no. 289016. * * You may obtain a copy of the License at * https://github.com/GPII/universal/blob/master/LICENSE.txt */ "use strict"; var fluid = require("infusion"), gpii = fluid.registerNamespace("gpii"); fluid.registerNamespace("gpii.settingsHandlers.noSettings"); // Get/Set settings handlers for "gpii.settingsHandlers.noSettings" gpii.settingsHandlers.noSettingsGet = function () { return function (payload) { return gpii.settingsHandlers.transformPayload(payload, gpii.settingsHandlers.getSettings); }; }; gpii.settingsHandlers.noSettingsSet = function () { return function (payload) { return gpii.settingsHandlers.transformPayload(payload, gpii.settingsHandlers.setSettings); }; }; gpii.settingsHandlers.noSettings.get = gpii.settingsHandlers.noSettingsGet(); gpii.settingsHandlers.noSettings.set = gpii.settingsHandlers.noSettingsSet();