From 4c77334c69b5e642323769adbc703fedc42257a9 Mon Sep 17 00:00:00 2001 From: Wonseop Kim Date: Mon, 22 Apr 2013 18:19:47 +0900 Subject: [PATCH] Gallery3d: Change timing of 'gl-matrix' library's execution Change-Id: Iaa886c2ab3f93bbd3ab8540e960f07ff7d2754ee --- libs/js/gl-matrix.js | 6 +- src/js/widgets/jquery.mobile.tizen.gallery3d.js | 207 +++++++++++++----------- 2 files changed, 116 insertions(+), 97 deletions(-) diff --git a/libs/js/gl-matrix.js b/libs/js/gl-matrix.js index 5718055..c7f1006 100644 --- a/libs/js/gl-matrix.js +++ b/libs/js/gl-matrix.js @@ -42,8 +42,10 @@ return factory(root); }); } else { - // Browser globals - factory(root); + // Specific initialization for TIZEN Web UI Framework + root.initGlMatrix = function ( targetRoot ) { + factory( targetRoot || root ); + }; } }(this, function (root) { "use strict"; diff --git a/src/js/widgets/jquery.mobile.tizen.gallery3d.js b/src/js/widgets/jquery.mobile.tizen.gallery3d.js index b467685..832c69e 100644 --- a/src/js/widgets/jquery.mobile.tizen.gallery3d.js +++ b/src/js/widgets/jquery.mobile.tizen.gallery3d.js @@ -242,7 +242,7 @@ define( [ "components/imageloader", "components/motionpath", "components/webgl" * select ( [number] ) * : When the "select" method is called with an argument, the method selects the image of given index. * If the method is called with no argument, it will return the Javascript object having "src" - * attribute having the selected image’s URL. + * attribute having the selected image's URL. * add ( object or string [, number] ) * This method adds an image to Gallery3D widget. * If the second argument isn't inputted, the image is added at the 0th position. @@ -340,7 +340,7 @@ define( [ "components/imageloader", "components/motionpath", "components/webgl" /** @method select When the "select" method is called with an argument, the method selects the image of given index. - If the method is called with no argument, it will return the Javascript object having "src" attribute having the selected image’s URL. + If the method is called with no argument, it will return the Javascript object having "src" attribute having the selected image's URL.