[Pkg-javascript-commits] [dojo] 14/88: Fix for multiversion support for parser, etc. Use local require() method provided by define(), not global one. Also addresses AMD-loader compatibility, since not all AMD loaders are guaranteed to have a global require() method. Fixes #15539 on 1.8 branch !strict.

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


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

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

commit 4b87defcb8cd4b9b3ab38da92f2eec6b4e7e36a5
Author: Bill Keese <bill at dojotoolkit.org>
Date:   Fri Aug 24 03:30:35 2012 +0000

    Fix for multiversion support for parser, etc.   Use local require() method provided by define(), not global one.   Also addresses AMD-loader compatibility, since not all AMD loaders are guaranteed to have a global require() method.   Fixes #15539 on 1.8 branch !strict.
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@29542 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 parser.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/parser.js b/parser.js
index 3494c39..e90784d 100644
--- a/parser.js
+++ b/parser.js
@@ -1,7 +1,7 @@
 define(
-	["./_base/kernel", "./_base/lang", "./_base/array", "./_base/config", "./_base/html", "./_base/window", "./_base/url",
-		"./_base/json", "./aspect", "./date/stamp", "./Deferred", "./has", "./query", "./on", "./ready"],
-	function(dojo, dlang, darray, config, dhtml, dwindow, _Url, djson, aspect, dates, Deferred, has, query, don, ready){
+	["require", "./_base/kernel", "./_base/lang", "./_base/array", "./_base/config", "./_base/html", "./_base/window",
+		"./_base/url", "./_base/json", "./aspect", "./date/stamp", "./Deferred", "./has", "./query", "./on", "./ready"],
+	function(require, dojo, dlang, darray, config, dhtml, dwindow, _Url, djson, aspect, dates, Deferred, has, query, don, ready){
 
 	// module:
 	//		dojo/parser

-- 
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