ensurens: optimizations
authorKrzysztof Antoszek <k.antoszek@samsung.com>
Wed, 10 Apr 2013 10:20:55 +0000 (12:20 +0200)
committerYoumin Ha <youmin.ha@samsung.com>
Tue, 16 Apr 2013 04:38:21 +0000 (13:38 +0900)
commit91585faea5df60949c569c3dab121d543614260f
tree085eccde14bf017c096098bcc0b3cb954ee22ce6
parent6eeb19c9d7c1022d310a93c6fbc34305883ffed6
ensurens: optimizations

- decreased eval calls
- added a top->down while loop for faster iterations
- added internal cache to prevent pointless declarations
- fixed ensurens inclusions for proper build order
- changed eval to function creation which is faster

Change-Id: Ibae2f0db9b1a2b76ae4bf658b5187984c64ece10
src/js/jquery.mobile.tizen.clrlib.js
src/js/jquery.mobile.tizen.loadprototype.js
src/js/util/ensurens.js