[Pkg-javascript-commits] [dojo] 04/16: Fix parser to obey _noScript flag in prototype again, so that dijit.Declaration works. Also adding unit tests for dijit.Declaration. Fixes #11586 !strict.

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:03 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.5.3
in repository dojo.

commit 13c5db49ccd1c7c7bd9e60dbea8b5f6f11715162
Author: Bill Keese <bill at dojotoolkit.org>
Date:   Thu Aug 19 04:32:22 2010 +0000

    Fix parser to obey _noScript flag in prototype again, so that dijit.Declaration works.   Also adding unit tests for dijit.Declaration.  Fixes #11586 !strict.
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.5/dojo@22735 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 parser.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parser.js b/parser.js
index 734fb62..2157c77 100644
--- a/parser.js
+++ b/parser.js
@@ -368,7 +368,7 @@ dojo.parser = new function(){
 			});
 
 			// if parent is a widget, then search for <script type=dojo/*> tags and put them in scripts[].
-			var scripts = parent.scripts;
+			var scripts = parent.clsInfo && !parent.clsInfo.cls.prototype._noScript ? parent.scripts : null;
 
 			// unless parent is a widget with the stopParser flag set, continue search for dojoType, recursively
 			var recurse = !parent.clsInfo || !parent.clsInfo.cls.prototype.stopParser;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list