From ab765a6f70dc95ba53ff60e3c33a90329ecd614a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 7 Oct 2013 19:16:23 +0000 Subject: [PATCH] add that.options getsetter to Ox.URL --- source/Ox.UI/js/Core/URL.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source/Ox.UI/js/Core/URL.js b/source/Ox.UI/js/Core/URL.js index 3195d695..d1559c31 100644 --- a/source/Ox.UI/js/Core/URL.js +++ b/source/Ox.UI/js/Core/URL.js @@ -969,6 +969,23 @@ Ox.URL = function(options) { } + /*@ + options Gets or sets the options of an element object + () -> All options + (key) -> <*> The value of option[key] + (key, value) -> This element + Sets options[key] to value and calls update(key, value) + if the key/value pair was added or modified + ({key: value, ...}) -> This element + Sets multiple options and calls update(key, value) + for every key/value pair that was added or modified + key The name of the option + value <*> The value of the option + @*/ + that.options = function() { + return Ox.getset(self.options, arguments, null, that); + }; + /*@ parse parse (callback) -> parse state from document.location