diff --git a/WebWidgets/ExtJS/src/Utility.cpp b/WebWidgets/ExtJS/src/Utility.cpp index 1d5d4a787..52a12276c 100644 --- a/WebWidgets/ExtJS/src/Utility.cpp +++ b/WebWidgets/ExtJS/src/Utility.cpp @@ -483,9 +483,9 @@ bool Utility::writeJSEvent(std::ostream& out, const std::string& eventName, cons { // TODO: we can optimize here a bit by avoiding the copy std::list dels; - std::list::const_iterator it = dels.begin(); + std::list::const_iterator it = delegates.begin(); bool written = false; - for (; it != dels.end(); ++it, --serverCallPos) + for (; it != delegates.end(); ++it, --serverCallPos) { if (serverCallPos == 0) {