mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Added license dump and angular module fixes
This commit is contained in:
38
dist/ionic-simple.js
vendored
38
dist/ionic-simple.js
vendored
@ -85,6 +85,7 @@
|
||||
}
|
||||
|
||||
})(this, document, ionic);;
|
||||
|
||||
(function(ionic) {
|
||||
|
||||
ionic.registerComponent({
|
||||
@ -102,6 +103,7 @@
|
||||
});
|
||||
|
||||
})(ionic);;
|
||||
|
||||
(function(window, document, ionic) {
|
||||
|
||||
ionic.fn = {
|
||||
@ -164,6 +166,7 @@
|
||||
|
||||
})(this, document, ionic);
|
||||
;
|
||||
|
||||
(function(ionic) {
|
||||
|
||||
ionic.registerComponent({
|
||||
@ -174,30 +177,29 @@
|
||||
},
|
||||
|
||||
init: function(el) {
|
||||
if(el) {
|
||||
if(!el) { return; }
|
||||
|
||||
// check if we've already created a Toggle instance for this element
|
||||
if(!el.component) {
|
||||
// check if we've already created a Toggle instance for this element
|
||||
if(!el.component) {
|
||||
|
||||
// find all the required elements that make up a toggle
|
||||
var opts = {
|
||||
el: el,
|
||||
checkbox: el.querySelector("input[type='checkbox']"),
|
||||
track: el.querySelector(".track"),
|
||||
handle: el.querySelector(".handle")
|
||||
};
|
||||
// find all the required elements that make up a toggle
|
||||
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;
|
||||
// validate its a well formed toggle with the required pieces
|
||||
if(!opts.checkbox || !opts.track || !opts.handle) return;
|
||||
|
||||
// initialize an instance of a Toggle
|
||||
el.component = new ionic.views.Toggle(opts);
|
||||
}
|
||||
|
||||
return el.component;
|
||||
// initialize an instance of a Toggle
|
||||
el.component = new ionic.views.Toggle(opts);
|
||||
}
|
||||
|
||||
return el.component;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
})(ionic);
|
||||
})(ionic);
|
||||
|
||||
Reference in New Issue
Block a user