diff options
author | Jean Claveau <jean.claveau@c277.fr> | 2014-10-05 18:02:58 +0200 |
---|---|---|
committer | Jean Claveau <jean.claveau@c277.fr> | 2014-10-05 18:02:58 +0200 |
commit | ec05305be1ce3b210a471dafc146886d04ada6c2 (patch) | |
tree | 9ce63164558ef47eedec8437cfb656113ff9b1f8 | |
parent | 33612cdcc1ab5f3e73e7647a8e62ecbab1495432 (diff) |
cleaning
-rw-r--r-- | script/svg/__init__.js | 6 | ||||
-rw-r--r-- | src/skin/svgparser.cpp | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/script/svg/__init__.js b/script/svg/__init__.js index 6c244c9025..775265dd1e 100644 --- a/script/svg/__init__.js +++ b/script/svg/__init__.js @@ -21,9 +21,6 @@ svg.getHooksPattern = function(){ // hook_name( arg1 [, arg2]... ) if( hookNames.length ){ var pattern = "("+hookNames.join('|')+")\\(([^\\(\\)]+)\\)\\s*;?"; - - // console.log('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'); - // console.log(pattern); return pattern; } } @@ -51,10 +48,9 @@ svg.templateHooks.prop = function( propName, varName ){ } } else { - print( 'Unable to find ' + varName + ' for prop hook.' ); + console.log( 'Unable to find ' + varName + ' for prop hook.' ); } - // print( varName + ' => ' out + ' | ' + (varName in global) ); return out; } diff --git a/src/skin/svgparser.cpp b/src/skin/svgparser.cpp index 2efcc9023a..b00905667f 100644 --- a/src/skin/svgparser.cpp +++ b/src/skin/svgparser.cpp @@ -106,8 +106,7 @@ void SvgParser::parseAttributes(const QDomNode& node) const { QDomNamedNodeMap attributes = node.attributes(); QDomElement element = node.toElement(); - - // Preparing the pattern of hooks + // Retrieving hooks pattern from script extension QScriptValue global = m_context.getScriptEngine().globalObject(); QScriptValue hooksPattern = global.property("svg") .property("getHooksPattern").call(global.property("svg")); |