diff --git a/source/Ox.UI/js/Core/Element.js b/source/Ox.UI/js/Core/Element.js index 038b3c0c..d158fd6d 100644 --- a/source/Ox.UI/js/Core/Element.js +++ b/source/Ox.UI/js/Core/Element.js @@ -525,7 +525,7 @@ Ox.Element = function(options, self) { @*/ that.update = function() { var callbacks; - if (Ox.typeOf(arguments[0]) == 'function') { + if (Ox.isFunction(arguments[0])) { self.updateCallbacks.push(arguments[0]); } else { callbacks = Ox.makeObject(arguments);