org.symbian.tools.wrttools.previewer/preview/script/lib/widget.js
changeset 303 a619b3ef3095
parent 273 b1f63c2c240c
child 369 0a31422d2116
equal deleted inserted replaced
302:60453502674e 303:a619b3ef3095
    61 	 * @param {String} Key preference value to be fetch
    61 	 * @param {String} Key preference value to be fetch
    62 	 *     preferenceForKey()
    62 	 *     preferenceForKey()
    63 	 * @return {String} Value
    63 	 * @return {String} Value
    64 	 */
    64 	 */
    65 	widget.preferenceForKey = function(name){
    65 	widget.preferenceForKey = function(name){
    66 		return _BRIDGE_REF.nokia.helper.readCookie(name);
    66 		return _BRIDGE_REF.nokia.helper.getPreference(name);
    67 	}
    67 	}
    68 	
    68 	
    69 	
    69 	
    70 	/**
    70 	/**
    71 	 * Stores the key associated with the specified preference
    71 	 * Stores the key associated with the specified preference
    73 	 * @param {String} Key Preference value associated to
    73 	 * @param {String} Key Preference value associated to
    74 	 *     setPreferenceForKey()
    74 	 *     setPreferenceForKey()
    75 	 * @return {Void}
    75 	 * @return {Void}
    76 	 */
    76 	 */
    77 	widget.setPreferenceForKey = function(preference, key){
    77 	widget.setPreferenceForKey = function(preference, key){
    78 		_BRIDGE_REF.nokia.helper.createCookie(key, preference);
    78 		_BRIDGE_REF.nokia.helper.setPreference(key, preference);
    79 	}
    79 	}
    80 	
    80 	
    81 	
    81 	
    82 	
    82 	
    83 	/**
    83 	/**