File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
IOS/SDK/LuaViewSDK/Classes/lvsdk Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -113,14 +113,15 @@ static int setCallback (lua_State *L) {
113
113
114
114
static int start (lua_State *L) {
115
115
LVUserDataInfo * user = (LVUserDataInfo *)lua_touserdata (L, 1 );
116
- LVTimer* timer = (__bridge LVTimer *)(user->object );
117
- if ( lua_gettop (L)>=2 ) {
118
- timer.interval = lua_tonumber (L, 2 );
119
- }
120
- if ( lua_gettop (L)>=3 ) {
121
- timer.repeat = lua_toboolean (L, 3 );
122
- }
123
- if ( user ){
116
+
117
+ if ( user ) {
118
+ LVTimer* timer = (__bridge LVTimer *)(user->object );
119
+ if ( lua_gettop (L)>=2 ) {
120
+ timer.interval = lua_tonumber (L, 2 );
121
+ }
122
+ if ( lua_gettop (L)>=3 ) {
123
+ timer.repeat = lua_toboolean (L, 3 );
124
+ }
124
125
if ( timer ){
125
126
[timer startTimer ];
126
127
lua_pushvalue (L,1 );
You can’t perform that action at this time.
0 commit comments