callback function with tween method

29 views
Skip to first unread message

umaydin

unread,
Oct 18, 2010, 6:12:56 PM10/18/10
to xui-js
Hello everybody,

I have a problem with callback function in tween method. The code is
below. Without callback function tween works fine but when I put
callback function it says

xui-core-1.0.0.min.js:10 // Uncaught ReferenceError: options is not
defined

Any idea?

CODE:
x$('#item').css({
top: 0,
left: 100,
background: 'url(./images/item.png) no-repeat
center'
})
.tween({
opacity: 0.65,
top: 480,
duration: 2000
}, function(){
alert('Done!');
});

Brian LeRoux

unread,
Oct 18, 2010, 6:45:21 PM10/18/10
to xui-js
try the src here:

github.com/xui/xui

And use an after key.

x$('#foo').tween({opacity: 0.65, after: function(){ alert('Done!') });

umaydin

unread,
Oct 19, 2010, 5:33:58 AM10/19/10
to xui-js
I have sleep awhile then try your suggestipn without getting the xui
from github. after parameter is workin in 1.0 version already :)

thanks.

umaydin

unread,
Oct 18, 2010, 10:31:15 PM10/18/10
to xui-js
Thank you for your response.

I already tried that but it returns that error.

./build:2:in `require': no such file to load -- YAML (LoadError)
from ./build:2

I was trying it on Ubuntu 10.10 and I just installed ruby by apt-get
Isn't there any other way to get callback method run?

On Oct 19, 1:45 am, Brian LeRoux <brian.ler...@gmail.com> wrote:

Brian LeRoux

unread,
Oct 19, 2010, 2:35:21 PM10/19/10
to xui...@googlegroups.com
here's what I just did...


$ git clone g...@github.com:xui/xui.git
Cloning into xui...
remote: Counting objects: 3541, done.
remote: Compressing objects: 100% (1523/1523), done.
remote: Total 3541 (delta 2011), reused 3318 (delta 1873)
Receiving objects: 100% (3541/3541), 8.27 MiB | 1.13 MiB/s, done.
Resolving deltas: 100% (2011/2011), done.
$ cd xui
$ git submodule init && git submodule update
Submodule 'packages/emile' (http://github.com/madrobby/emile.git)
registered for path 'packages/emile'
Submodule 'packages/qunit' (git://github.com/jquery/qunit.git)
registered for path 'packages/qunit'
Submodule 'packages/sizzle' (git://github.com/jeresig/sizzle.git)
registered for path 'packages/sizzle'
Cloning into packages/emile...
remote: Counting objects: 112, done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 112 (delta 56), reused 0 (delta 0)
Receiving objects: 100% (112/112), 25.28 KiB, done.
Resolving deltas: 100% (56/56), done.
Submodule path 'packages/emile': checked out
'75d63358d48fa814dbd7818d096ed2dac041b261'
Cloning into packages/qunit...
remote: Counting objects: 637, done.
remote: Compressing objects: 100% (560/560), done.
remote: Total 637 (delta 220), reused 222 (delta 75)
Receiving objects: 100% (637/637), 110.86 KiB, done.
Resolving deltas: 100% (220/220), done.
Submodule path 'packages/qunit': checked out
'618430776a839a04b467c14d1fd4a7d391a5826e'
Cloning into packages/sizzle...
remote: Counting objects: 1118, done.
remote: Compressing objects: 100% (1080/1080), done.
remote: Total 1118 (delta 715), reused 57 (delta 10)
Receiving objects: 100% (1118/1118), 469.60 KiB, done.
Resolving deltas: 100% (715/715), done.
Submodule path 'packages/sizzle': checked out
'852d3d0a60de709e83b65ddb54e6a095498ad1a8'
$ ./build
$ ls lib/
xui.js

> --
> You received this message because you are subscribed to the Google Groups "xui-js" group.
> To post to this group, send email to xui...@googlegroups.com.
> To unsubscribe from this group, send email to xui-js+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/xui-js?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages