From d67f208675db0b89e3511c2998e9c04cb13287e7 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 20 Nov 2009 20:00:23 +0000 Subject: [PATCH] Various performance improvements thanks to the new Cycript. --- PhotoExample.cydget/index.html | 6 +++--- Welcome.html | 6 ++---- control | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/PhotoExample.cydget/index.html b/PhotoExample.cydget/index.html index ff28b98..2e51892 100644 --- a/PhotoExample.cydget/index.html +++ b/PhotoExample.cydget/index.html @@ -108,18 +108,18 @@ document.write(''); dlopen("/System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary", RTLD_GLOBAL); - var album = PLCameraAlbum.sharedInstance.images; + var album = [[PLCameraAlbum sharedInstance] images]; var jpeg = null, length = album.length; for (var i = 0; i != 5; ++i) { - jpeg = album[Math.floor(Math.random() * length)].fileGroup.pathForFullSizeImage; + jpeg = [[album[Math.floor(Math.random() * length)] fileGroup] pathForFullSizeImage]; if (jpeg != null) break; } if (jpeg == null) for (var i = 0; i != length; ++i) { - jpeg = album[Math.floor(i)].fileGroup.pathForFullSizeImage; + jpeg = [[album[Math.floor(i)] fileGroup] pathForFullSizeImage]; if (jpeg != null) break; } diff --git a/Welcome.html b/Welcome.html index b5e7a24..4ba1734 100644 --- a/Welcome.html +++ b/Welcome.html @@ -99,9 +99,7 @@ - - - + diff --git a/control b/control index b2ccff2..8cbc2ad 100644 --- a/control +++ b/control @@ -3,10 +3,10 @@ Priority: optional Section: Development Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3090-1 +Version: 0.9.3093-1 Description: framework for managing lock screen plugins Name: Cydget -Depends: mobilesubstrate (>= 0.9.2587-1), firmware (>= 2.2), preferenceloader, apr-lib, pcre +Depends: mobilesubstrate (>= 0.9.2587-1), firmware (>= 2.2), preferenceloader, apr-lib, pcre, cycript (>= 0.9.292-1) Replaces: cydialer (<< 0.9.17) Author: Jay Freeman (saurik) Depiction: http://cydia.saurik.com/info/cydget/ -- 2.45.2