removed div.track from toggle

This commit is contained in:
Adam Bradley
2013-10-17 11:46:48 -05:00
parent ac8da1dccf
commit 02cf3872a1
10 changed files with 189 additions and 190 deletions

View File

@ -18,12 +18,11 @@
var opts = {
el: el,
checkbox: el.querySelector("input[type='checkbox']"),
track: el.querySelector(".track"),
handle: el.querySelector(".handle")
};
// validate its a well formed toggle with the required pieces
if(!opts.checkbox || !opts.track || !opts.handle) return;
if(!opts.checkbox || !opts.handle) return;
// initialize an instance of a Toggle
el.component = new ionic.views.Toggle(opts);