►
Description
YUI Open Roundtable is a forum for all things YUI, javascript, and other front end technologies.
A
A
I
have
a
just
a
brief
just
want
to
take
up
brief
things.
We've
kicked
off
the
latest
sprint
for
yy.
The
dates
are
posted
on
github.
A
If
you
go
to
the
yy3
github
repo
and
go
to
wiki
and
go
to
development
schedule,
you'll
see
sprint
again
april
22nd
code,
freeze
will
be
may
the
code
freeze
will
be
may
9th.
With
the
pull
request
deadline
on
may
6th.
A
The
commit
freeze
is
may
16th
which
doesn't
really
affect
you
guys
out
in
the
community,
because
this
is
just
an
internal
thing.
After
we've
branched
the
the
the
code
we
have
like
a
week
or
so
or
we
can
check
in
some
changes
and
then
on
may
20th,
we
should
have
stable
release.
So
that's
my
public
service
announcement
and
let
me
see
if
anyone
is
coming
online.
A
So
marco
feel
free
to
go
ahead
and
start.
We've
got
a
couple.
People
watching
so
far
and
we've
got
gerhard.
I
believe
is
also
he's
just
not
on
a
video
he's
watching
as
well,
so
feel
free
to
go
ahead
and
start.
B
All
right
good,
good
afternoon,
everyone
good
evening:
it's
11
p.m.
Here
in
the
netherlands,
so
I'm
going
to
talk
to
you
about
how
we
are
using
promises
and
promises
inside
molito
because
great
framework
we
use
for
our
web
applications
and
our
promises
are-
are
inside
the
gui
library
for
a
while
now
and
we
are
using
them
inside
we
use
this
does
not
support
promises.
B
There
are
in
the
in-field
devices
to
send
the
data
to
the
server
the
server
and
stores
them
in
the
data
into
database,
and
this
is
the
point
where
we
very
use
the
process,
so
we
normally
you,
you
have
a
library
that
can
access
the
database,
we
have
mysql
databases
and
they
all
work
with
callbacks
out
of
the
box,
and
promises
are
really
great.
If
you
want
to
to
batch
and
change
requests,
queries
to
the
to
the
databases,
is
it
the
daisy
chain?
Is
that
what
you
said
to
watching?
B
Excuse
me:
what
did
it
say?
I.
A
Said
you
said
something
it's
really
great.
If
you
want
to
what.
B
Yes,
they
all
call
asynchronous
and
they
all
call
simultaneous
simultaneously,
that's
the
great
power
of
using
promises,
but
we
use
promises
of
both
on
the
server
side
and
we
use
promises
on
the
client
side.
So
what
I
want
to
do,
I
will
start
sharing
the
project,
a
sample
project,
not
the
big
one
I
was
referring
to,
but
the
sample
project
that
we
made
that
I
made
for
you
and
let
me
see,
sharing
the
screen.
A
B
Now
I
won't
go
too
into
much
detail
in
in
how
mojito
works,
because
that
will
be
a
very
large
truck.
It's
not
the
main
goal
of
this
presentation,
so
I
hope
for
everyone
watching
who
is
watching
that
they
are
a
bit
familiar
with
me
or
anyway.
There
are
other
hangouts
or
open
round
tables
that
discuss
mojito.
B
So,
to
start
with,
we
need
to
use
this
modules
modules
that
will
present.
They
can
present
a
lot
of
things,
but
in
this
case
it
will
present
a
pace
here.
We
are.
B
Oh,
I
see
there's
this
is
great
the
hangout
she
has
different
screens
all
right
now.
You
should
see
it.
You
see
now
the
the
mojito
project
yeah
now
I
can
see
it
yeah.
B
B
So
yeah
there
you
go.
This
is
better
right,
yeah,
a
bit
more
all
right.
What
you
see
here
is
is
the
home
page,
so
the
home
page
meteor
is
serving
their
own
place
through
the
view-
and
this
is
just
this-
is
data
that
I
will
talk
to
you
later-
how
it
gets
this
data.
There
are
two
buttons
on
it
and
two
hidden
containers,
so
the.
B
Yeah,
all
right
now
the
buttons
are
rendered
by
the
view
and
the
first
content
is
actually
coming
from
a
database.
So
that
is
just
like
how
any
content
management
system
would
work
accessing
data
from
a
database
and
put
it
into
your
your
page.
So
we
go
to
the
mojito
view.
If
you
see
that
here
are
the
two
buttons
here
are
the
two
hidden
containers
I'll
continue
later
and
here's
the
content,
and
what
the
idea
is
is
that
the
controller.
B
Is
running
right
here,
the
controller
does
actually
the
the
the
next
steps,
it
will
call
the
model
name
and
it
will
run
here
your
the
promise
and
the
promise
that
it
runs
will
return
with
the
data
and
as
soon
as
it
gets
the
data
you
can
hear
the
fulfilled
promise
or
either.
If
you
reject,
if
the
promise
gets
rejected,
you
get
a
reject,
rejected
promise.
So
the
data
is
normally.
A
A
B
Is
just
one
one:
this
is
just
one
one
request
batching
will
be
done
later
on.
I
will.
I
will
show
you
how
that
is
done,
just
an
introduction.
How
the
promises
were.
Is
that
normally
we
need
to
use
this
callbacks
and
what
we
made
was
here.
You
are,
and
you
have
only
one
one
single
sentence
here-
one
statement
that
will
actually
return
the
promise
and
this
one
is
available
by
the
module
that
we
made
at
the
bottom.
You
see
here,
this
module
is
included
and
it
is
supplying
the
database
example
connection.
B
It
is
calling
one
promise
of
it
and
inside
we
just
have
the
query
right
so
so
this
means
that
I
can
very
quickly.
I
can
just
just
go
in
a
very
simple
way:
query:
the
mysql
database,
the
controller
over
here
here
you
are
is
right
here
it
is
calling
the
promise
and
it
will
return
the
resales
in
the
response
and
the
response
is,
is
passed
through
the
asa.done,
and
this
goes
into
the
view
and
the
promised
results
have
has
one
property
named
page
content
and
this
one
is
rendered,
so
we
can
see
it
on
the.
B
This
is
how
we
set
up
set
up
the
he
promises
I'll.
I
will
show
you
at
the
end,
because
that
is
the
most
difficult
part,
how
we
manage
to
create
promises
on
the
mysql
server,
but
what
we,
what
I
wanted
to
show
you
is
how
promises
work
in
mojito,
so
I
can
use
a
model
name,
the
promise
and
in
the
thenabol
I
have
the
the
fulfilled
promise
or
the
reject
promise.
Now.
B
There's
one
thing
you
should
keep
in
mind
here
is
that
you
always
have
to
meet
your
ass
to
to
call
asadon
or
error
right
and
in
identical.
I
have
the
fulfilled
and
I
have
the
rejected
methods.
Functions
calls
I
must
say-
and
this
seems
okay,
but
there's
one
little
bit
for
you.
That
is,
if
I
do
something
like
this.
B
Then
I
then
have
a
problem,
because
some
power
is
only
fine.
It's
not
part
of
the
response,
and
this
will
throw
an
error
so
in
the
promises
that
have
have
left
have
the
behavior
that
once
they
throw
an
error,
they
they
you
don't
see
the
error,
they
just
reject.
You
don't
see
it
at
that
moment,
but
they
throw
it
and
you
get
into
the
in
the
rejected
chain.
A
So
if
you
get
an
error
here,
does
it
kill
the
app
or
what
happens
it'll
go
into
the.
B
Well,
what
happens
is
that
what
happens
is
that
it
will
actually
write
to
the
console
that
there
is
no.
It
will
not
write
to
the
console,
it
will
just
the
the
promise.
This
is
the
promise
that
will
be
just
rejected.
It
will
jump
right
from
here
from
here
we'll
jump
into
here
at
the
end,
so
just
get
rejected,
you
get
no
arrows,
you
get
nothing.
Okay,.
A
It
doesn't
do
that
it
doesn't
do
the
rejected
function
right.
B
D
B
B
I
could
use
the
same
inline
function,
I'm
using
right
here,
but
here
I'm
binding
by
reference,
calling
ac
dot
done,
and
this
is
this
is
a
better
way
because
when,
if
at
the
end
completely
at
the
end,
you
have
the
dot
catch
that
will
catch.
Every
error
error
made
every
other
that
was
made
perhaps
inside
the
original
problems,
but
also
when
there
is
an
error
inside
here.
So.
B
Right
yeah:
if
the
promise
itself
gets
a
voice
rejected,
then
it
will
also
come
into
the
catch,
and
if
you
make,
if
you
have
a
bug
inside
here
for
some
some
reason,
then
you
also
go
to
the
case,
because
catching
catching
is
actually
something
like
chaining.
It's
catching
is
actually
catching
is
actually
this.
B
B
B
B
Of
but
this
this
this
will
do
because
I've
only
ac
done
here,
there's
probably
no
bug
inside
the
the
inline
function
right
here,
so
it
it
will
do
but
the
code
warfare.
So
this
is
just
how
how
things
can
be
used.
This
is
a
simple
promise.
You
see
here,
relative,
simple,
simple
promise.
It's
just
one
promise
not
not
doing
anything
itself
like
batching,
like
I
said
this
one.
B
At
the
client
side,
we
can
have
javascript
code
that
is
part
of
the
of
the
module
itself
and
it
the
the
that
codes.
You
can
you
have
to
set
up
retail,
but
if
you
do
the
code
you
will
you
will
find
it
in
in
the
binder.
So
the
binder
is
the
obstacle
of
this
specific
white
sheet
that
is
running
on
the
client
side.
A
If
people
are
watching
this
and
they're
not
sure
what
mojito
is
check
out,
some
of
the
videos
that
we
talked
about,
one
of
the
advantages
of
mojito
is
that
you
can
have
code
that
runs
both
on
the
client
and
the
server
and
mojito
will
push
that
code.
If
you
wanted
to
to
the
client
side,
which
is
what
marco
is
doing,.
G
B
B
This
coat
that
will,
in
the
end,
will
show
the
container,
so
the
container
will
be
fissure
made
visible
and
what
all
this
go
do
I
will
show
you
in
a
moment,
but
before
I
do,
I
will
just
show
you
how
it
looks
like.
So
this
is
the
website
on
the
client.
I
will
press
button
one,
and
here
you
are
so
it
will
by
pressing
button
one
the
container
gets
visible.
B
B
B
B
But
normally
you,
if
you
do,
if
you
do
simultaneous
asynchronous
data,
calls
like
I
do
here.
I
call
info,
but
I
call
in
full
promise
that
is
not
part
of
magito
out
of
the
box.
I
made
this
by
myself.
I
will
show
you
how
it
looks
like,
but
it's
actually
invoking,
but
returning
a
promise
with
the
data,
and
I
also
do
a
iql
call,
which
is
also
a
promise.
B
It's
the
same
as
when
you
would
do
an
iqr
call
in
the
traditional
way
where
you
get
a
callback
as
a
return,
but
this
this
one
is
also
made
by
promise.
So
now
I
can
match
them.
I
can
match
them
using
either
promise
at
all
doing
two
simultaneous
promise
class
and
when
it's
ready
I
will
the
either
process
of
r
is
bound.
This
is
not
about
it's
put
into
a
variable
or
actions,
and
the
code
is
actually
going
top
down
straight
ahead,
so
our
actions
is
either
not.
These
are
asynchronous
asynchronous
methods.
B
So
it's
going
right
down
right
down
to
this,
but
the
then
ball
is
not
ready.
Yet
the
then
ball
is
only
ready,
then
either
promise
that
all
is
ready.
When
those
both
promises
are
resolved
only
then
we
get
into
the
the
identical
of
the
all
actions
and
when
we
do,
we
we
get
the
attendees
that
goes
into
the
first
result
of
the
promises,
and
we
get
a
record
like
your
record.
That
comes
from
the
second
one.
B
So
now
I
have
I'm
bashing,
I'm
batching
in
in
a
asynchronous
way
simultaneously
and
when
the
results
come
back,
I
will,
I
will
put
the
result
into
the
container
node.
I
said
hatching
now
here
you
are
at
these,
and
the
weather
is
just
this
and
when
this
is
ready,
we
only
then
we
remove
the
hidden
glass,
and
this
is
great
because
if
I
go
back
to
the
to
the
view
page,
this
is
great
because
you
don't
want
it.
The
user
experience
is
very
bad.
G
A
B
B
B
I
will
continue
if
you,
if
it's
okay
with
you,
but
this
is
how
it
works
now,
of
course,
things
may
go
wrong,
so
in
the
end
we
also
have
a
dot
catch
again
and
there
is
an
error.
Then
the
I
made
this
one
to
show
the
error
in
the
container.
B
So
it's
just
how
the
way
to
to
to
do
it,
but
you
again,
I
I
I
always
put
a
dot
catch
at
the
end,
but
this
is
this
is
right
now
I
put
it
in
your
actions
variable
here,
but
I
don't
have
to
so.
I
could
easily
do.
B
B
B
B
B
In
this
example,
it
is
a
sample,
I'm
saying
all
right
ask
from
the
by
using
it
for
us
from
the
server
id
and
then
you
have
the
response
that
was
the
2
5,
0,
etc.
They
use
the
response
and
put
it
into
your
iqr
promise.
So
I'm
chaining
right
here
and
then
I
have
this,
then
I
I
have
to
complete
records
and
can
render
it
on
screen.
So.
G
B
B
So
all
right,
so
so
this
is,
but
in
order
to
in
order
to
make
this
work.
B
B
B
One
thing
that
is
really
important
to
say
here
is
that
it's
another
pitfall
of
promises
is
that
a
promise
you
see
here,
there's
a
function,
call
and
inside
function.
Call
this
the
context.
This
is:
is
the
global
window,
and
it's
just
in
the
nature
of
javascript
and
the,
but
the
the
pitfall
you
have
is
that
you
are
easily
wanted
to
do
this.
B
This
stop
budget
procedure
invoke,
and
that
will
fail
so
to
overcome
this.
You
must
at
this
stage
you
must
bind
this
to.
I
call
I
always
bind
it
to
instance.
Some
people
do
that.
Is
this
or
me
is
this?
Doesn't
matter
really,
but
you
have
to
bind
it
and
then
you
can
use
without
what
you
project
doesn't
involve.
A
B
This
is
one
one
last
thing
I
wanted
to
say
here,
and
that
is
I,
I
think,
there's
a
bug
in
yeah.
I
think
it's
it's
a
design.
Failure
to.
I
promise
at
all.
I've
said
it
before,
but
I
will
say
it
again
and
I
will
show
you
later
on
how
we
made
a
workaround,
but
I
promise
that
all
is
is
made
in
a
way
that
it
only
fulfills
when
every
single
promise
you
you
put
inside
the
array
is
fulfilled.
B
So
if,
if
either
one
of
these
gets
rejected,
for
whatever
reason
then
the
complete,
I
promise
the
dog
gets
rejected.
And
personally
I
think
this
is
a
design
failure,
because
every
single
promise
that
you
put
inside
they
are
not
aware
of
each
other,
and
you
might
be
very
well
interested
in
the
results
of
those
who
gets
fulfilled.
B
Yeah
yeah,
if
you're
partially
fulfilled,
if
you,
if
you
refer
to
the
idol,
promise
a
lot,
then
it's
what
you
fulfilled
yeah.
That
is
true
for
me.
It
isn't.
This
promise
is
completely
fulfilled
and
this
promise
was
completely
rejected.
That
is
the
example
that,
but
yes,
yes,
the
batch,
the
patch
where
you
talk
about
the
best
will
be
I'm
interested
in
partially
fulfilled
fulfilled
of
the
bets
yeah.
It's
also
a
product
yeah.
B
Yeah
I
have
I,
I
created
the
promise
that
I
created
either
promise
dot
all
resolved,
and
I
will
show
you
later
on.
I
created
some
of
the.
I
will
jump
into
the
ipo
promise
and
in
the
in
the
in
the
in
the
ui
modules
that
I
open
at
the
left
right
now
there
are
here.
B
You
see
very
interested,
interesting
modules
I
created,
so
they
are
on
github
for
everyone
who
wants
to
use
them,
and
I
will
show
you
how
I
created
either
promised
at
all
resolved,
which
I'm
going
to
use
use
later
on
in
page
three,
but
at
this
moment
I
will
show
you
how
I
use
how
I
created
I
dot
iql
promise.
That
was
the
so
I
showed
you
how
the
info
promise
worked,
and
I
will
show
you
now
how
the
ico
promise
is
designed.
B
B
If
you
use
it,
if
you
name
it
dot
server.js,
it's
only
be
running
on
the
server,
but
client.js
is
only
available
on
the
client
available
and
I
should
not
say
running,
I
should
say
available
and
if
you
use
it
dot,
com
and
okay,
if
this
is
affinity,
server,
client
or
common
comment
means
it
is
available
on
both
on
the
server
and
on
the
client
side.
So
this
is
a
simple,
simple
promise
I
made
everyone
can
use
it
as
it
is.
As
you
see
it
right
here,
and
it
is
transforming
the
traditional
iql.
B
B
To
create
to
add
the
first
parameter,
that
is
your
query.
That's
all,
but
you
can
promise
so
this
is
also
very
great
uses,
creating
promises
and
use
to
to
batch
the
process.
Yeah,
that's
it,
but
that
was.
B
B
B
I
had
to
fetch
two
to
2
models
of
mojito.
The
first
one
was
the
base
content.
I
would
jump
to
the
does
this.
What
you
see
here
this
is
the
page
content.
This
comes
from
the
mysql
database
and,
and
I
have
the
news
items
themselves,
but
to
speed
things
up.
I
will
I
need
to
to
run
the
whole
thing.
The
two
promises
I
will
run.
I
need
to
run
them.
G
B
B
B
B
B
Then
there
was
and
no
records
when
there
were
no
records.
I
rejected
the
the
promise
and
in
this
particular
case
you
want
an
empty
hammer
that
really
gets
fulfilled,
so
I
I
catch
it
in
case
it
gets
reject
and
I
return
an
area
and
what
you
see
here
is
a
great
a
great
power
of
how
promises
work,
because
normally
you
have
you
return
a
promise,
but
instead
of
returning
a
promise,
I
manipulate
it.
I
I
can
by
catching
I
can
do
it,
but
I
can
also
do
it
by
inaudible.
B
I
manipulated
data.
I
will
show
you
how
that
works.
When
I
come
to
page
three,
but
I
manipulate
the
data
and
the
manipulated
data
gas
returns.
This
is
actually
the
rejected
chain
which
you
see
here
and
I
make
I
make
the
rejection
to
fulfill
again.
So
get
items
always
return.
Something-
and
here
you
are
so
to
here
you
see
to
simultaneously
cause
my
skill
data
table.
B
The
first
one,
the
page
content
one
cuts
into
this
one,
the
second
one
response
is-
is
added
to
this
property,
and
then
we
run
into
ac.
To
done,
and
ac
done
is
this
so
face.
Content
is
from
the
first
mysql
table
and
the
news
items
called
from
the
second
mysql
table,
but
you
know
the
great
thing
is
they
they
create
at
the
same
time,
on
the
server
side
and
then
pass
through
to
the
client
side.
What
you
see
here
on
the.
C
B
Yeah
yeah-
and
this
is
how
to
speed
of
things
the
either
promise
at
all
is
is
made
to
is
used
by
me
to
speed
up
yeah.
It's
made
made
to
speed,
speed
things
up,
speed
things
up,
fetching
data
simultaneously,
that's
what
it
does
yeah.
It
is
the
same
problem
here.
If,
if
it
fails,
it
will
jump
to
the
catch
yeah.
If
only
one
of
those
will
fail,
it
will
call
to
jump
to
the
case.
So
this
is
not
a
great
thing.
I
believe
so
I
made
page
free
here.
You
are
page
free.
B
B
I
free
similar
see
using
simultaneously
promises
running
the
first
two
are
calling
the
mysql
data
table
and
the
third
is
calling
the
iql
and
ipo
promises
can
available
here
at
the
bottom.
I
have
included
it
there.
You
are,
and
it's
part
of
the
I
t
I
underscore
modules,
because
it's
a
command.gs
so
but
either
promise
that
all
resolved
is
a
bit
changed.
It
is
it's
different
from
either
promised
only
in
a
way
that
it
will
always
resolve
yeah
and
to
make
to
make
the
response.
B
This
is
the
code,
it
looks
a
bit
difficult,
but
it's
actually
the
code
I
copy
and
paste
from
from
who
once
either
promised
at
all
the
non-native.
F
One
this
one's
all
in
all
resolved.
So
excuse
me,
hey
what
did
you
say?
What's
the
difference
between
all
and
all
results,
yeah,
the
difference
is.
Is
that
the
all.
B
B
I
will
here,
I'm
looking
if
it's,
if
it's
a,
if
it's
either
fulfilled
or
rejected
the
if
it
is
fulfilled
or
rejected,
is
coming
through
this
second
parameter
here
and
I
will
not
reject
the
promise.
I
will
use
the
status
either
fulfilled
object
and
it
is
passed
through
to
to
this
area.
So
if
it
is
a
fulfilled
one,
then
the
value
gets
in
the
survey.
B
B
B
B
B
B
B
I'm
calling
fulfilled
hash
index
0
but,
like
I
said,
should
the
first
promise
gets
rejected.
Then
the
value
of
page
content
backup
will
be
no.
It
is
filled
with
no
value
so
over.
Here
I
must
check.
I
must
check.
I
cannot
just
do
this.
If
I
do
this,
then
there
might
might
in
case
of
rejected
promise
it
will.
This
will
turn
into
a
runtime
error
and
the
rental
error
will
throw
you
back
to
the
cache,
always
catch
your
final
okay.
B
B
G
B
Couple
of
things,
because
this
I
don't
promise
at
all
they'll,
actually
start
three
processes,
three
asynchronous
processes
simultaneously,
but
one
of
them
this
one
is-
is
also
using
either
promise
at
all.
So
actually,
we
did
not
initiate
the
free
promises
that
we
initiated
five
promises
simultaneously.
B
A
You
should
talk
to
the
search
team
at
yahoo
because
they're
they're,
you
know
mojito
and
a
lot
of
this
stuff-
is
really
relevant
to
search,
because
when
you
do
a
search
query,
you
may
get
something
called
direct
displays
like,
for
instance,
you
search
for
a
movie
you'll.
When
you
get
the
results
back
on
the
page,
you
they,
they
do
a
query
to
another
service
to
get
like
movie
data
and
they
may
show
it
on
the
screen.
A
B
Yes,
good
thing:
you
you
get
it
all
recorded
right,
yeah
yeah
I
saw
it.
I
saw
the.
I
saw
the
presentation
on
the
q
icon
and,
if
I
remember
right
there
was,
I
don't
know
if
it's
from
the
search
stream,
but
I
I
I
saw
that
at
one
application
you
were
using
either
parallel
and
a
parallel
is
also
a
way
of
of
of
simultaneously
fetching
data,
but
it's
all
based
on
the
on
the
callback
system.
So
it's
it's
really.
A
B
Now,
but
what
is
really
what
is
also
interesting
here
is
that
I
I'm
fetching
three
simultaneous
calls
to
the
dot
to
the
mysql
data
table,
but
before
returning
them,
I
mix
them
up
so
going
back
to
the
server
to
the
controller
this
one.
Oh
this
now
come
on
yeah
this.
This
one
is
calling
one
promise,
but
it
returns
something
that
is
some
things
like
composite.
It's
com,
it's
composite
what
we
say:
it's
composed,
yeah
composed
composed
no
very
composed,
so
I
I
call
free
free,
free,
mysql
queries.
B
B
So
what
what
I
do
is
I
always
do
a
single,
a
single
query
on
one
table
like
here.
I
call
the
person
id
from
the
attitudes
and
in
another
query
I
call
the
id
and
I
combine
them.
I
combine
them.
I
don't
have
an
inner
join
between
this
one
and
this
one,
but
this
one
gives
me
back
a
completely
area
of
all
the
persons
and
if
it's,
if
it's
the
right
way
to
do
or
not,
it
depends
on
the
number
of
records
that
that
are
inside
and.
B
B
B
So
that
was
actually
most
of
the
things
I
wanted
to
show
you
this
be
the
last
thing
that
was
how
the
how
the
database,
the
database
query,
word
worked.
B
If
you
want
more
information,
you
could
look
at
the
domain.
Slash
node
minus
mysql
from
kit
up
here
it
is,
but
I
think
the
thing
is
that
if
you
use
non-mysql,
you
get
callbacks
the
same
thing
it
doesn't.
It
is
not.
It
is
not
created
to
to
work
to
in
a
promised.
D
B
B
A
And
you
said
that
zero
results
is
still
available.
B
B
It
always
gets
something
back
always
it
gets
an
object
back
here
we
are,
it
returns
an
object
with
property
results.
Results
is
always
an
array
which
can
be
an
empty
area
and
it
returns
the
field
property
which
gives
you
additional
information,
and
my
experience
is
that
I
wasn't
very
interested
in
the
fields
property
at
all.
I
was
always
calling
the
results
property,
so
the
next
step
I
did
was
all
right.
B
B
Yeah,
I
was
always
doing
this.
I
was
all
doing
this.
I
was
always
executing
the
query
promise
and
I
was
also
always
doing
this.
The
response
came
back
and
I
was
looked
at
the
results,
so
I
created
cad
records
and
I
also
wanted
to
get
the
promise
of
the
cat
records
I
always
wanted
to.
I
also
wanted
to
make
it
reject
and
there
was
nothing
inside.
B
So
if
records
are
length
is
bigger
than
zero,
then
we
could
we
return
the
responsive
result.
Otherwise
we
throw
an
error
which
makes
the
promise
to
reject-
and
I
made
another
sugar
method
over
here
to
get
record
if
you,
if
you
only
are
interested
in
the
first
one,
if
you
only
want
to
to
to
to
to
carry
only
one
record,
then
let
me
get
get
record
which
is
on
his
is
calling
cat
records
by
itself
but
always
returns.
The
first
item
of
the
of
the
query,
but
the
nodemysql
is
quite
complex.
B
B
B
B
And
it's
it's
ready
to
use
so
here
you
have
the
required
primer
to
the
module
and
he
said
his
own
module
name
so
everywhere
in
my
project
everywhere.
In
my
project,
I
only
have
to
send
here
at
the
bottom.
I
only
have
to
reference
to
include.
I
only
have
to
include
the
module
I
created
and
this
particular
module
is
actually
is
delivering
the
the
connection
to
the
data
table
that
I
was
defining
in
the
specific
in
the
specific
mod
deal.
B
B
I
get
a
complete
handle
to
the
database,
which
has
connection
pooling
under
the
roof,
and
it
also
has
yeah
a
lot
of
a
lot
of
error.
A
I
have
a
question
for
you
about
about
the
code
that
you've
written
for
the
for
the
promised
version
of
the
connection.
The
mysql
promise.
Is
there
a
hard
requirement
for
yui
for
that,
or
could
you
make
that,
like
an
npm
module
or
something.
B
B
Yep
right
all
right,
so
I'm
quite
new
to
npm,
I'm
diving
into
it
right
now.
So
actually
it
is
it.
It
would
be
a
great
npm
model.
Yes,
but
I
I
don't
have
experience
yet
how
to
to
to
it's
not
difficult,
but
I
I'm
diving
into
how
to
do
it.
I
never
made
an
npm
model
yet
so,
but
this
is,
it
would
be
nice
to
be
on.
At
the
moment
I
made
a
gui
module.
A
B
Yeah
yeah
yeah
yeah,
absolutely
you're,
absolutely
right,
yeah
yeah,
so
that
would
be
nice
so,
but
at
the
moment,
so
as
it
is
right
now,
it
is
great
module
and
dot.
Ui
is
available
inside
the
ito
on
server
side,
so
you
can
easily
include
the
module
and
and
and
use
it
right
away,
yeah,
and
that
and
that's
also
the
reason
why
I
shared
I
shared
the.
Where
are
you.
A
A
You've
played
off
of
promises,
strengths
in
terms
of
rejecting
a
promise,
sort
of
corresponds
with
an
empty
search
result,
empty
sql,
query
and,
and
also
how
you
you've
worked
on.
You
know
the
partially
fulfilled
promises
where
you
can
get
back
the
list
of
the
filled
and
unfulfilled.
That's
all
really
great
yeah.
That
makes
that.
B
Yeah
yeah
yeah.
Absolutely
it's
a
bit
funny,
because
if
you
look
at
my
code,
this
is
it's
it's
almost
like
I
I
I
use
only
promises.
It's
it's!
It's!
It's
almost
fifty
percent
of
what
god's
promises,
so
it's
fun!
It's
fun!
You
can
do
really
amazing
things
with
it
with
it.
But
you
have
to
be
able
to
be
aware
of
the
pitfalls
that
I
told
this
station.
A
A
Do
you
have
a
like
a
sample,
my
sql
database,
in
there
too,
or
is
that
something
that,
how
how
would
they
get
to
that.
B
The
what
example
exactly
do
you
mean.
B
B
B
A
Oh
yeah,
this
is
really
useful
again
I'll.
Definitely
after
after
this
round
table
I'll
definitely
send
this
video
over
to
the
search
guys,
because
either
they're
already
doing
something
like
this
or
they
could
be
interested
in
some
of
that
work
as
well,
especially
the
the
partially
fulfilled
stuff.
G
A
A
Cool
thank
you
for
for
coming
today,
and
I
appreciate
you
taking
the
time
to
come.
Talk
to
us
and
anytime,
you
have
any
more
amazing
cool
stuff.
Let
us
know
because
we'll
be
happy
to
feature
here.