]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update gulpfile.js 1850/head
authorKirushanth Sakthivetpillai <kirushanth.2@gmail.com>
Tue, 5 Jan 2016 16:19:48 +0000 (11:19 -0500)
committerKirushanth Sakthivetpillai <kirushanth.2@gmail.com>
Tue, 5 Jan 2016 16:19:48 +0000 (11:19 -0500)
root can be either window, globals but without this, JS will not lookup in globals object

gulpfile.js

index 04a64539433a9619a7c3c4db300910a26786db29..7c461f4f1ca732de869292cd759f3c18fa121fe1 100644 (file)
@@ -86,7 +86,7 @@ function buildTask() {
                                "  }\n"+
                                "}(this || window, function(<%= param %>) {\n"+
                                "<%= contents %>\n"+
-                               "return <%= exports %>;\n"+
+                               "return this.<%= exports %>;\n"+
                                "}));\n",
                        dependencies: function() {
                                return ['moment']