In John Lee's Introduction to Smooth Manifolds, a map $F$ from a subset $A$ of a smooth manifold $M$ into a smooth manifold $N$ is, as on p. 45, smooth if every point $p$ in $A$ has a neighborhood $U$ and a smooth map $G$ from $U$ into $N$ such that $G$ and $F$ agree on $A\cap U$. In the errata from his website, this definition is modified so as to allow maps such as the identity on $R^1$ restricted to $H^1$ into $H^1$ to still be considered smooth as a map from a subset of $R^1$ into $H^1$ -- instead of requiring that $G$ be a smooth map into $N$, all that is needed is a smooth chart $\psi$ around $F(p)$ such that $\psi\circ F$ has a smooth extension around $p$.
The lemma that immediately follows this definition is the extension lemma for smooth functions: for every smooth function $f$ from a closed subset $A$ of $M$ into $R^n$ and for every neighborhood $U$ of $A$, there is a smooth extension $\tilde{f}$ from $M$ into $R^n$ of $f$ and supported in $U$. In this case, since the target space $R^n$ has no boundary, the original definition for a smooth map on a subset agrees with the modified definition, and the proof relies on the original definition, so no worries.
Fast-forward to chapter 8: vector fields. A smooth vector field along a subset $A$ of $M$ is defined, on p. 176, to be a map from $A$ into $TM$ such that every point $p$ in $A$ has a neighborhood $U$ and a smooth vector field $Y$ from $U$ into $TM$ such that $X$ and $Y$ agree on $A\cap U$. Of course, this is just a special case of his original definition of a smooth map on a subset. The lemma that immediately follows this definition is the extension lemma for vector fields: for every smooth vector field $X$ from $A$ into $TM$, and for every neighborhood $U$ of $A$, there is a global vector field $\tilde{X}$ on $M$ that agrees with $X$ on $A$ and is supported in $U$. Now $TM$ has boundary when $M$ does, so it isn't clear to me that the modified and original definitions agree. The proof is left as an exercise, and one can easily adopt the proof for the lemma for smooth functions, if in fact the original and modified definitions do agree in the case of smooth vector fields. Do they? I thought about this for a few days, but I haven't been able to get an extension of the chart/vector field composite to land in the closed upper half plane..