Adjusted event response and fixed bugs; version up 35/21135/1
authorWenchao Wang <wenchao.wang@intel.com>
Thu, 15 May 2014 09:30:27 +0000 (17:30 +0800)
committerWenchao Wang <wenchao.wang@intel.com>
Thu, 15 May 2014 09:30:27 +0000 (17:30 +0800)
Changed to respond 'DOMNodeInserted' event
Resolved overflowed integer issue

Change-Id: Ibb2ee2ceed96db889e10711716f18665b15ee617
Signed-off-by: Wenchao Wang <wenchao.wang@intel.com>
package/changelog
package/pkginfo.manifest
web/cache.manifest
web/ripple.js

index f019b81..f026979 100644 (file)
@@ -1,3 +1,8 @@
+* 2.0.33
+- Changed to respond 'DOMNodeInserted' event
+- Resolved overflowed integer issue
+- Bugs fixing
+== wenchao.wang <wenchao.wang@intel.com> 2014-05-15 17:25
 * 2.0.32
 - Resolved the NFC communication issue in network panel
 - Adjusted the implementation of Secure Element
index 3a04d90..17b7903 100644 (file)
@@ -1,4 +1,4 @@
-Version:2.0.32
+Version:2.0.33
 Maintainer:hyeongseok heo <hyeong-seok.heo@samsung.com>, gyeongseok seo <gyeongseok.seo@samsung.com>, jihoon song <jihoon80.song@samsung.com>, changhyun lee <changhyun1.lee@samsung.com>, bonyong lee <bonyong.lee@samsung.com>
 
 Package:websimulator-core
index 966c3be..d90649a 100644 (file)
@@ -98,4 +98,4 @@ images/AboutLogo.png
 images/refreshIcon.png
 images/ui-bg-hashed.png
 images/tizen-sdk-menu.png
-# Manifest build date: Fri Apr 04 2014 14:27:24 GMT+0800 (CST)
\ No newline at end of file
+# Manifest build date: Thu May 15 2014 14:37:44 GMT+0800 (CST)
\ No newline at end of file
index 2833ba7..2c7d384 100644 (file)
@@ -1,5 +1,5 @@
 /*! 
-  Ripple Mobile Environment Emulator v0.9.8 :: Built On Fri Apr 04 2014 14:27:22 GMT+0800 (CST)
+  Ripple Mobile Environment Emulator v0.9.8 :: Built On Thu May 15 2014 14:37:42 GMT+0800 (CST)
 
                                 Apache License
                            Version 2.0, January 2004
@@ -67449,21 +67449,19 @@ function _beforeLoad() {
 
 function _bindObjectsToFrame(frame) {
     _srcChangedObserver.observe(frame, {attributes: true, attributeFilter: ["src"]});
-    frame.addEventListener("beforeload", _beforeLoad);
+    frame.addEventListener("DOMNodeInserted", _beforeLoad);
+//    frame.addEventListener("beforeload", _beforeLoad);
     // beforeload event of an iframe will not be triggered unless we detach and
     // then attach the iframe to the dom tree
     var parentNode = frame.parentNode;
-    var nextNode = frame.nextNode;
+    var nextNode = frame.nextSibling;
     if (parentNode) {
         // Disable iframe added observer to avoid infinite loop of binding objects
         if (frame.ownerDocument && frame.ownerDocument._iframeAddedObserver) {
             frame.ownerDocument._iframeAddedObserver.disconnect();
         }
         parentNode.removeChild(frame);
-        if (nextNode)
-            nextNode.insertBefore(frame);
-        else
-            parentNode.appendChild(frame);
+        parentNode.insertBefore(frame, nextNode);
 
         if (frame.ownerDocument && frame.ownerDocument._iframeAddedObserver) {
             _observeIframeAdded(frame.ownerDocument);
@@ -117381,6 +117379,8 @@ define('ripple/platform/tizen/2.0/typecoerce', function (require, exports, modul
  */
 
 var t = require('ripple/platform/tizen/2.0/typedef'),
+    _MAX_INT_BITS = 53,
+    _MAX_INT = Math.pow(2, _MAX_INT_BITS) - 1,
     _self;
 
 _self = function (pattern) {
@@ -117507,6 +117507,22 @@ _self = function (pattern) {
         return (x < 0) ? Math.ceil(x) : Math.floor(x);
     }
 
+    function isBitsOverflowed(bits) {
+        return (bits >= _MAX_INT_BITS);
+    }
+
+    function toJsInt(x, isUnsigned) {
+        var min, max;
+
+        min = isUnsigned ? 0 : -_MAX_INT;
+        max = _MAX_INT;
+
+        if ((x < min) || (x > max))
+            return null;
+
+        return toInteger(x);
+    }
+
     function modulo(a, b) {
         return (a - Math.floor(a / b) * b);
     }
@@ -117519,6 +117535,9 @@ _self = function (pattern) {
         if (isNaN(x) || !isFinite(x))
             return null;
 
+        if (isBitsOverflowed(bits))
+            return toJsInt(x, false);
+
         p = Math.pow(2, bits);
         x = modulo(toInteger(x), p);
 
@@ -117531,6 +117550,9 @@ _self = function (pattern) {
         if (isNaN(x) || !isFinite(x))
             return null;
 
+        if (isBitsOverflowed(bits))
+            return toJsInt(x, true);
+
         return modulo(toInteger(x), Math.pow(2, bits));
     }
 
@@ -124898,6 +124920,8 @@ define('ripple/platform/ivi/3.0/typecoerce', function (require, exports, module)
  */
 
 var t = require('ripple/platform/ivi/3.0/typedef'),
+    _MAX_INT_BITS = 53,
+    _MAX_INT = Math.pow(2, _MAX_INT_BITS) - 1,
     _self;
 
 _self = function (pattern) {
@@ -125014,6 +125038,9 @@ _self = function (pattern) {
         if (obj instanceof window.tizen[pattern._constructor])
             return true;
 
+        if ("_derived" in pattern)
+            return true;
+
         return false;
     }
 
@@ -125021,6 +125048,22 @@ _self = function (pattern) {
         return (x < 0) ? Math.ceil(x) : Math.floor(x);
     }
 
+    function isBitsOverflowed(bits) {
+        return (bits >= _MAX_INT_BITS);
+    }
+
+    function toJsInt(x, isUnsigned) {
+        var min, max;
+
+        min = isUnsigned ? 0 : -_MAX_INT;
+        max = _MAX_INT;
+
+        if ((x < min) || (x > max))
+            return null;
+
+        return toInteger(x);
+    }
+
     function modulo(a, b) {
         return (a - Math.floor(a / b) * b);
     }
@@ -125033,6 +125076,9 @@ _self = function (pattern) {
         if (isNaN(x) || !isFinite(x))
             return null;
 
+        if (isBitsOverflowed(bits))
+            return toJsInt(x, false);
+
         p = Math.pow(2, bits);
         x = modulo(toInteger(x), p);
 
@@ -125045,6 +125091,9 @@ _self = function (pattern) {
         if (isNaN(x) || !isFinite(x))
             return null;
 
+        if (isBitsOverflowed(bits))
+            return toJsInt(x, true);
+
         return modulo(toInteger(x), Math.pow(2, bits));
     }
 
@@ -125210,6 +125259,9 @@ _self = function (pattern) {
                                 break;
                         }
                         if (ret === null) {
+                            if ("_constructor" in pattern)
+                                break;
+
                             return null;
                         }
                         break;
@@ -125396,7 +125448,7 @@ _self = function (pattern) {
 
                 elementType = _self(pattern[0]);
                 for (i in obj) {
-                    if (obj[i]) {
+                    if (obj[i] !== undefined) {
                         arr[i] = elementType.copy(obj[i]);
                         if (arr[i] === null)
                             return null;
@@ -125457,6 +125509,9 @@ _self = function (pattern) {
                                 break;
                         }
                         if (derived === null) {
+                            if ("_constructor" in pattern)
+                                break;
+
                             return null;
                         }
                         for (attr in derived) {